Forum Discussion
ProdPal
1 year agoNew Member
Need help with Dax calculation : For 4 Quarter Rolling%
Here's my Sample data , Index Year Quarter Response Date NPS Group 1 2025 Q1 2025-01-15 Promoter 2 2025 Q1 2025-01-15 Passive 3 2025 Q1 2025-01-15 Detractor 4 2025 Q1 2025-01...
- 1 year ago
Hi ProdPal ,
Based on the sample data Below is the result.
And the measure is:
Rolling $ Quarter _ Promoter % = var stat = max('Table'[ Response Date])-365 var B = date(year(stat),month(stat),1) RETURN calculate(COUNT('Table'[NPS Group]),ALLEXCEPT('Table','Table'[NPS Group]),'Table'[ Response Date]>=B,'Table'[ Response Date]<=max('Table'[ Response Date]))TO get the percentage, go to the value pane, put show value as percentage of row total.
Let me know If this works. Plz accept as solution if works.
- 1 year ago
Hi ProdPal ,
Thank you for reaching out to Microsoft Fabric Community.
Thank you Rupak_bi for the prompt response.
I have created PBIX file using sample data, please go through the attached PBIX file.
If this post helps, then please consider Accepting as solution to help the other members find it more quickly.
Thank you.