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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
tb1985
New Member

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

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

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

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 @tb1985 ,

 

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!!

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. 

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...🙂

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 @tb1985 ,

 

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!!

Yes, both under values:

Values.png

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

blank.png

 

Hi @tb1985 ,

 

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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