Hi Folks
I want to create a measure that quantifies the progress of students through training milestones. Essentially I want to quantify the number of distinct students that have reached
- Milestone 4 in a) 2 or more subject areas b) 3 or more subject areas
- Milestone 5 in a) 2 or more subject areas b) 3 or more subject areas
My first tthought is that this should be DAX CALCULATE measure. So to calculate the number of Distinct students that have reached milestone 4 in 2 (1a above) - the formula should be something like
1a = CALCULATE(DISTINCTCOUNT(Sheet1[Student_ID]), DISTINCTCOUNT(Sheet1[Subject area]>1, DISTINCTCOUNT(Sheet1[Max Milestone Reached]= 4)))
But I get the following error message "The DISTINCTCOUNT function only accepts a column reference as an argument". So it looks like it doesn't like a measure as the filter argument.
Can someone help me out with this measure?
The structure of the data is shown in the screen shot below,and the PowerBI workbook is available at this link
Cheers
Steve