cancel
Showing results for 
Search instead for 
Did you mean: 
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
Microsoft
Microsoft

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!

dkay84_PowerBI
Microsoft
Microsoft

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
PBI Sept Update Carousel

Power BI September 2023 Update

Take a look at the September 2023 Power BI update to learn more.

Learn Live

Learn Live: Event Series

Join Microsoft Reactor and learn from developers.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

MPPC 2023 PBI Carousel

Power Platform Conference-Power BI and Fabric Sessions

Join us Oct 1 - 6 in Las Vegas for the Microsoft Power Platform Conference.

Top Solution Authors