Forum Discussion
GuestUser
6 years agoHelper V
Cumulative 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
6 years agoMost Valuable Professional
Hi GuestUser ,
try this.
Cumulative Trx =
CALCULATE(
[Trxcount],
FILTER(
ALLSELECTED('Item'[Item]),
ISONORAFTER('Item'[Item], MAX('Item'[Item]), DESC)
)
)
- GuestUser6 years agoHelper 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 agoMost 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?