Forum Discussion
sqlguru448
Helper III
6 years agoComplex Dax Measure - Help Needed
Hello Folks, I have a complex requirement in Power BI reporting which is sourced from Azure Analysis Services Tabluar Model via Live Connection. I cannot change the Tabular model, so the measure ...
sqlguru448
Helper III
6 years agodaxer-almighty Thank you so much for helping me out, I am unable to implement last section i.e. from "SelectColumns" my dax intellisense is not recognising it.
Anonymous
6 years agoNot applicable
Hi
If you can't use SELECTCOLUMNS, replace the corresponding bit of code with this:
var __customersSurvivedCount =
calculate(
countrows( Customer[CustID] ),
__qualifiedSections,
ALL( Transactions )
)My code returns the number of customers but you can easily change so that it returns the sum of transactions for the customers in question.