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
powerbiexpert22
Impactful Individual
Impactful Individual

rolling 2 months donut chart

i want to show distribution of rolling 2 months promoters, detractors and passivers in donut chart but is not giving correct results. it should give 75 % for Promoters and 25 % for Passives .please see pbix file 

 

pbix file: 

https://drive.google.com/file/d/19JXQs2aBUTk4g6wvvCiRevSxRs3suzFr/view?usp=drive_link

 

 

powerbiexpert22_0-1722484649974.png

 

 

Totalcustomersrolling =
CALCULATE([TotalCustomers],
DATESINPERIOD('Date'[Date],MAX('Date'[Date]),-2,MONTH))
 
Promotersrolling =
CALCULATE([Promoters],
DATESINPERIOD('Date'[Date],MAX('Date'[Date]),-2,MONTH))
 
Promoters = IF(
    ISBLANK(CALCULATE(COUNT(Survey[customer_id]),Survey[category]="Promoter")),0,
    CALCULATE(COUNT(Survey[customer_id]),Survey[category]="Promoter")
)
1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @powerbiexpert22 ,

 

Would you like the donut chart to display data from the past two months? If so, you could add a date filter to the visual and update the Values parameter to reflect a count of customer_id.

vbofengmsft_0-1722562238697.png

 

Best Regards,

Bof

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @powerbiexpert22 ,

 

Would you like the donut chart to display data from the past two months? If so, you could add a date filter to the visual and update the Values parameter to reflect a count of customer_id.

vbofengmsft_0-1722562238697.png

 

Best Regards,

Bof

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.