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
irnm8dn
Post Prodigy
Post Prodigy

Pie Chart and Calculation Help

My dataset is has a Start Date and a Finish Date, and from this information I am currently calculating Day Count, Days Remaining and Days Complete.

 

I am trying to represent within a pie chart, how many days have been completed, and how many days are remaining, however Power BI is summing the rows because the dataset itself is aggregated daily.  Unlike the "table visualization", there is not an option for "Don't Summarize".  The pictures below show the pie chart with the "Days in Flight" and "Days Remaining" summed, and the table view with the correct information.

 

I am looking for two answers/suggestions:

 

1.  How can I have the pie chart not sum the Days Remaining or Days in Flight?  

(I believe this is a product of the dataset which has a daily aggregation.)

 

2.  How can I show only percentages in the pie chart?

 

Pie.PNGtable.PNG

2 REPLIES 2
Phil_Seamark
Employee
Employee

You could create a specific % measure and use that on your access instead.

 

So rather than Sum of XYZ, create a measure which is the Sum of XYZ divided by the Total of XYZ, then format that as a percent and drag it to your axis.

 

Then of course you'll want to see the sum as well.

 

Have you explored the tooltips as an option as well?


To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

I'm not following you here.  Do you have multiple different flights/planes for which there are days flown and days remaining?

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.