Forum Discussion

mohit19's avatar
mohit19
Frequent Visitor
8 years ago

DAX Result

I have attach a screenshot of my table view :http://prntscr.com/jx6ow8

I have created a measure :
Measure 6 = CALCULATE(COUNT(TblStudent[StId]),TblStudent[StStatus]="Active"), which give count of active student,

I have created  another measure:

StudentCount=IF(CALCULATE(COUNT(TblStudent[StId]),TblStudent[StStatus]="Active")>20,20,CALCULATE(COUNT(TblStudent[StId]),TblStudent[StStatus]="Active"))

It return 20 if count of student is greater than 20 in table view else same value, But the total at bottom in table show 20 for StudentCount, please guide how can I correct it?

 

Thanks in advance... 

 

3 Replies