Forum Discussion

th340385's avatar
th340385
Helper I
2 years ago
Solved

Dax Measure Help

Hello, 

 

I have a dataset that I am trying to calculate the total number of rows >= a specific stage number. 

 

My current measure is

Count by Stage = CALCULATE([Count All Rows], FILTER(ALLSELECTED('Data'), 'Data'[Stage#] >= max('Data'[Stage#])))

 

Current Output: 

Stage #1234567
# of rows in stage         22,543         21,749         21,351         14,379           7,407           6,088         5,466

 

This measure calculates the correct number of rows for each stage; however, I was hoping to have cumulative number of rows greater than or equal to each stage.

 

Desired result is below:

 

Stage #1234567
# of rows in stage         98,983         76,440         54,691         33,340         18,961         11,554         5,466

15 Replies