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...
mwegener
Most Valuable Professional
6 years agoHi GuestUser ,
try this.
Cumulative Trx =
CALCULATE(
[Trxcount],
FILTER(
ALLSELECTED('Item'[Item]),
ISONORAFTER('Item'[Item], MAX('Item'[Item]), DESC)
)
)
- GuestUser6 years ago
Helper V
Hi mwegener
While using MAX function , i get the error ...max function can work only on numbers or dates and not string data types
I am using Connect Live (SSAS Tabular)
just for trying....I checked on pbix file where import method was used ...it works there...
Any idea ..why is it so??
Any suggestions on how to implement in connect live?
- mwegener6 years ago
Most Valuable Professional
Hi GuestUser ,
I am currently not working with SSAS Tabular, but it is documented in the DAX Guide as follows.
Returns the largest value in a column, or the larger value between two scalar expressions. Ignores logical values. Strings are compared according to alphabetical order.
Which version are you using?