Forum Discussion
sqlguru448
6 years agoHelper III
Complex 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 ...
AntrikshSharma
6 years agoCommunity Champion
sqlguru448 I believe this article can help you, give it a try: https://www.daxpatterns.com/new-and-returning-customers/
- CNENFRNL6 years agoCommunity Champion
Hi, there, pls refer to the following calculated table formula for details,
Debug = VAR _summary = SUMMARIZECOLUMNS ( dCust[Customer], dLoc[Location], dProd[Product], fSales, "Times", COUNTROWS(dDate), "MinDate", MIN ( dDate[Date] ), "MaxDate", MAX ( dDate[Date] ), "Interval", INT ( MAX ( dDate[Date] ) - MIN ( dDate[Date] ) ) ) VAR _tb = FILTER ( _summary, [Interval] > 0 && [Interval] <= 7 ) RETURN _summaryor change the last line to turn it into a measure
RETURN --_summary CONCATENATEX(_tb, [Customer], UNICHAR(10))it's based on a most idealized data model