Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Radz2707
Regular Visitor

Urgently need help , with Calculating 4 Quarter Rolling % Of NPS Groups.

Here's my Sample data ,

Index Year Quarter Response Date NPS Group

12025 Q12025-01-15Promoter
22025 Q12025-01-15Passive
32025 Q12025-01-15Detractor
42025 Q12025-01-22Promoter
52025 Q12025-01-22Passive
62025 Q12025-01-22Detractor
72025 Q12025-01-29Promoter
82025 Q12025-01-29Passive
92025 Q12025-01-29Detractor
102025 Q22025-04-05Promoter
112025 Q22025-04-05Passive
122025 Q22025-04-05Detractor
132025 Q22025-04-12Promoter
142025 Q22025-04-12Passive
152025 Q22025-04-12Detractor
162025 Q22025-04-19Promoter
172025 Q22025-04-19Passive
182025 Q22025-04-19Detractor
192025 Q32025-07-10Promoter
202025 Q32025-07-10Passive
212025 Q32025-07-10Detractor
222025 Q32025-07-17Promoter
232025 Q32025-07-17Passive
242025 Q32025-07-17Detractor
252025 Q32025-07-24Promoter
262025 Q32025-07-24Passive
272025 Q32025-07-24Detractor
282025 Q42025-10-05Promoter
292025 Q42025-10-05Passive
302025 Q42025-10-05Detractor

 

In need to calculate % of Promoters , Passive , Detractors in Power BI , 
The formula for Promoter % is (Count of Promoters / Total Count )*100 
My requirement is if I click on 2024 Q3, My Rolling $ Quarter _ Promoter % =  ( Count of Promoters  for Q3 2024 +Q2 2024+Q1 2024+Q4 2023)/(Total Count for  Q3 2024 +Q2 2024+Q1 2024+Q4 2023)*100

In the above sample data i have pasted if I click Q4 2024 in my slicer , I should get Rolling Promoter % ( Q4 2024+Q3 2024+Q2 2024+ Q1 2024)
My output should be in the below format :

Year Quarter Promoter % Passive % Detractor %

2025 Q'1   
2025 Q'2   
2025 Q'3   
2025 Q'4   
1 ACCEPTED SOLUTION

Thanks ! This was really helpful. Apologies for the delayed response, marking this as the solution.

View solution in original post

4 REPLIES 4
v-achippa
Community Support
Community Support

Hi @Radz2707,

 

Thank you for reaching out to Microsoft Fabric Community.

 

Thank you @Akash_Varuna for the prompt response.

 

As we haven’t heard back from you, we wanted to kindly follow up to check if the solution provided by the user resolved your issue? or let us know if you need any further assistance.
If any response resolved your issue, please mark it as "Accept as solution" and click "Yes" if you found it helpful.

 

Thanks and regards,

Anjan Kumar Chippa

Hi @Radz2707,

 

We wanted to kindly follow up to check if the solution provided by the user resolved your issue.

If any response resolved your issue, please mark it as "Accept as solution" and click "Yes" if you found it helpful.

 

Thanks and regards,

Anjan Kumar Chippa

Akash_Varuna
Community Champion
Community Champion

Hi @Radz2707 For this please follow these steps 

  1. Create a Rolling Total measure for each NPS group using CALCULATE and FILTER to include the last 4 quarters:

    Rolling Total Promoters = CALCULATE(COUNTROWS(tblProjects), FILTER(ALL(tblProjects), tblProjects[Year-Quarter] <= MAX(tblProjects[Year-Quarter]) && tblProjects[Year-Quarter] > MAX(tblProjects[Year-Quarter]) - 4), tblProjects[NPS Group] = "Promoter")
  2. Create a Rolling Total All measure for the total count across all groups similarly.

  3. Define percentage measures, e.g., Promoter % = DIVIDE([Rolling Total Promoters], [Rolling Total All], 0) * 100.

  4. Use a matrix visual with Year-Quarter in rows and the percentage measures in values; filter using a slicer.

Thanks ! This was really helpful. Apologies for the delayed response, marking this as the solution.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.