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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Donut not showing both measures

I have two measures, collected and uncollected which are formatted as measures and correctly show two totals that add to a 100 percent.  You can see they present correctly as cards. However, the donut chart is not showing the split and shows 100 percent  uncollected, which is clearly not correct. I am expecting to see 93.5 per cent green, a small bit grey. Any idea what is causing this?  There is only one page-level filter affecting all visuals and is jsut a filter on business unit.

 
 

donut-chart.png

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi guys,

 

Thanks for looking into it, but it definitely was  DAX issue - I'm not going to post the full solution here because it won't make sense to anyone, but the answer is very much check your DAX...🙂

View solution in original post

9 REPLIES 9
amitchandak
Super User
Super User

@Anonymous , What is the legend you are using or are using both measures.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Only filter is page level:

 

filter.png

 

I think the issue DAX related - the uncollected measure is 1-Collected and is just returning blank when it references [Collected]

Hi @Anonymous ,

 

Can you share the dax expressions for your both measures?

 

Thanks,

Pragati

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

Anonymous
Not applicable

Just have, have amended uncollected to:

Uncollected = 
var Qday = [Quarter-day]
var Collectpc = CALCULATE([Cash collected %],FILTER('Date','Date'[Date] = Qday))
return
1-Collectpc

Returns OK on the cards, again not on the donut/table. 

Anonymous
Not applicable

Hi guys,

 

Thanks for looking into it, but it definitely was  DAX issue - I'm not going to post the full solution here because it won't make sense to anyone, but the answer is very much check your DAX...🙂

Anonymous
Not applicable

Measure Dax:

 

Collected = 
var Qday = [Quarter-day]
return
CALCULATE([Cash collected %],FILTER('Date','Date'[Date] = Qday))

Uncollected = 
var Qday = [Quarter-day]
var Collectpc = CALCULATE([Cash collected %],FILTER('Date','Date'[Date] = Qday))
return
1-Collectpc

 

Pragati11
Super User
Super User

Hi @Anonymous ,

 

Are you moving both of your measures under VALUES section for the donut or somewhere else?

Can you put a screenshot for this?

 

Thanks,

Pragati

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

Anonymous
Not applicable

Yes, both under values:

Values.png

If I convert to table it looks like the table collected goes blank:

blank.png

 

Hi @Anonymous ,

 

Is there any visual level filter on your Donut chart?

Can you share pbix file?

 

Thanks,

Pragati

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 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.