Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
Our team is trying to move from PerformancePoint on SharePoint using SSAS cubes to Power BI making use of Fact and Dimension tables directly in the data model. To get the similar functionality in PowerBI as we had in PerformancePoint, we need to recreate some MDX formulas in DAX.
One of the formulas makes use of PrevMember function in MDX with hierarchies to calculate some values for KPI. Now, PrevMember is dynamic in nature, for example, when we select an year in the hierarchy, the KPI calculations are performed based on previous year, when we select month, the KPI calculations are performed for previous month, and similarly for date part as well.
I want to set up the same functionality using DAX but I don't fully understand the concepts yet. I have done some research and found a few half baked solutions but nothing elegant so far. If someone can please give me some pointers that would be great.
Thank you
@sohi429,
You can use DAX Time Intelligence Functions . And there is an example for your reference in the attached PBIX file. If you still have questions about the DAX, please share sample data of your table and post expected result here.
https://msdn.microsoft.com/query-bi/dax/time-intelligence-functions-dax
Regards,
Lydia
User | Count |
---|---|
140 | |
113 | |
104 | |
77 | |
65 |
User | Count |
---|---|
136 | |
117 | |
101 | |
71 | |
61 |