Hi,
I have an accident register, where the particulars of each workplace accident are recorded. (Example file located here: https://docs.google.com/file/d/0BzroIkMHFklTVlVOVm1JeW11cjg/edit?usp=sharing)
An injury can occur to multiple locations so the forms that record the injury have multiple injury location columns. (see image below).
A single injury location can occur in one of the five Location columns (e.g. Arm/wrist occurs in both Location1 and Location2).
In order to analyse this with traditional PivotTables, I have had to create calculated columns (see below) to the right of the raw data, one for each injury location. This allows me to add each location to the PivotTable as a separate field. However, because I need a separate field for each injury type, I can't filter / Slice a PivotTable by injury location.
I have imported the data table into PowerPivot and tried several different methods to be able to filter by injury location, but with no success. From what I have read/tried, I believe I would need to set up a disconnected table of injury locations and then filter the data via a Measure in the PivotTable as creating a link between the table of locations and the main table, won't work as I need to link multiple columns in my main table with the injury location table.
So I have two question, the most critical is "Is it even possible to be able to set up this behaviour in PowerPivot? and if so how?".
The second is more of a curiosity question: "is it better to have calculated columns in source data tables as above, or in the PowerPivot table?"
Thank you in advance.
(Note: I'm not sure how those images will be shown as the preview only displays an Icon. however, right-clicking and choosing open image in new tab displays ok.)
Regards, John
I have an accident register, where the particulars of each workplace accident are recorded. (Example file located here: https://docs.google.com/file/d/0BzroIkMHFklTVlVOVm1JeW11cjg/edit?usp=sharing)
An injury can occur to multiple locations so the forms that record the injury have multiple injury location columns. (see image below).
A single injury location can occur in one of the five Location columns (e.g. Arm/wrist occurs in both Location1 and Location2).
In order to analyse this with traditional PivotTables, I have had to create calculated columns (see below) to the right of the raw data, one for each injury location. This allows me to add each location to the PivotTable as a separate field. However, because I need a separate field for each injury type, I can't filter / Slice a PivotTable by injury location.
I have imported the data table into PowerPivot and tried several different methods to be able to filter by injury location, but with no success. From what I have read/tried, I believe I would need to set up a disconnected table of injury locations and then filter the data via a Measure in the PivotTable as creating a link between the table of locations and the main table, won't work as I need to link multiple columns in my main table with the injury location table.
So I have two question, the most critical is "Is it even possible to be able to set up this behaviour in PowerPivot? and if so how?".
The second is more of a curiosity question: "is it better to have calculated columns in source data tables as above, or in the PowerPivot table?"
Thank you in advance.
(Note: I'm not sure how those images will be shown as the preview only displays an Icon. however, right-clicking and choosing open image in new tab displays ok.)
Regards, John