Forum Discussion
Cumulative dax query help
Hi GuestUser ,
try this.
Cumulative Trx =
CALCULATE(
[Trxcount],
FILTER(
ALLSELECTED('Item'[Item]),
ISONORAFTER('Item'[Item], MAX('Item'[Item]), DESC)
)
)
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?
- mwegener6 years agoMost Valuable Professional
Hi GuestUser ,
the same problem is described here.
https://community.powerbi.com/t5/Service/Running-Total-Issue/td-p/964702
Unfortunately, the SELECTEDVALUE solution is only available from SSAS 2017.
https://dax.guide/selectedvalue/