Hi,
It seems calculated fields are greyed out if your data source for a pivot table is a power query that has was created with the option 'Add to Data Model' selected.
In that case how do I achieve (in DAX?) the equivalent of adding a calculated field that simply divides one column by another to effectively show a percentage.
For example, for a pivot table that has Department names as rows, a field counting staff, I'd like to add a calculated field that is a count of the staff who have completed training and show it as a % of the count of the staff in that department - i.e.
Could somebody point me in the right direction (I'm completely new to DAX)
Thanks
It seems calculated fields are greyed out if your data source for a pivot table is a power query that has was created with the option 'Add to Data Model' selected.
In that case how do I achieve (in DAX?) the equivalent of adding a calculated field that simply divides one column by another to effectively show a percentage.
For example, for a pivot table that has Department names as rows, a field counting staff, I'd like to add a calculated field that is a count of the staff who have completed training and show it as a % of the count of the staff in that department - i.e.
Department | Staff (count by department) | Sum if Date Completed Training is not blank | Completed Training |
Department 1 | 33 | 17 | 52% |
Department 2 | 23 | 21 | 91% |
Department 3 | 67 | 15 | 22% |
Could somebody point me in the right direction (I'm completely new to DAX)
Thanks