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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! 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

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.