Forum Discussion
GuestUser
Helper V
6 years agoCumulative dax query help
Hi We are using power bi with ssas tabular model using connect live option. Need help in cumulative column Report format is as below Matrix view Year. 2018. 2019 Item. Trxcount. Cumulative T...
GuestUser
Helper V
6 years agoHi mwegener ,
1) Cumulative = calculate( table[trx count],
filter
(allselected(item[item_name]),
item[item_name]<=if(hasonevalue(item[item_name]),values(item[item_name])
))
2) Trx Count = sum(table.item_count)
mwegener
Most Valuable Professional
6 years agoHi GuestUser ,
I don't understand why the "cumulative count" for some items in screenshot is 0.
Here I would expect the value of the previous item.
- GuestUser6 years ago
Helper V
Hi mwegener ,
Thanks for your inputs!!
Changed formula for Trx Count
Trx_Count = if(sum(Table[Item_count]) = blank(),0,sum(table[item_count])) ---- Shows 0 instead of blank
And Cumulative values show..previous value where Trx_Count is 0
But still I am not able to get rid of records having Trx_Count=0 , when i apply filter..it gives incoorect cumulative value...as posted in previous screenshot