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.
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.