Quantcast
Channel: Desktop topics
Viewing all articles
Browse latest Browse all 213819

CALCUALTE - Filter arument with calculated measures

$
0
0

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

  1.  Milestone 4 in a) 2 or more subject areas b) 3 or more subject areas
  2. 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

 

CALCULATE DATAstructure.PNG


Viewing all articles
Browse latest Browse all 213819

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>