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

Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more

Reply
Anonymous
Not applicable

Piechart based on a different total than aggregated sum

Here is the situation

 

I have a Total Accessible Market for an entire Market Segment (lets call it $1M - SUM(Demand[TAM]), which is in one table (Market).  In a different table I have the top three customers in that market and their sales for the year (Cust1/Sales=$100K;Cust2/Sales= $200K; and Cust3 Sales = $300K - Customer[Name] and SUM(Customer[Sales]).

 

I want to create a Piechart which the total is the $1M (SUM(Demand[TAM]), not the SUM(Customer[Sales]) for each of the customers.  Basically ending up with a Dynamic 'Other' Group (if you will).

 

I tried a couple of things, but nothing works.

 

Any ideas or hints?

 

Thanks,

Jay

 

 

1 ACCEPTED SOLUTION
v-frfei-msft
Community Support
Community Support

Hi @Anonymous ,

 

One sample for your reference. We can create multi measures to work on it.

 

a = CALCULATE(SUM(Table1[values]),FILTER(Table1,Table1[name]="a"))
B = CALCULATE(SUM(Table1[values]),FILTER(Table1,Table1[name]="b"))
C = CALCULATE(SUM(Table1[values]),FILTER(Table1,Table1[name]="c"))
Others = 1000- CALCULATE(SUM(Table1[values]),ALL(Table1))

Capture.PNG

 

If it doesn't meet your requirement. Could you please share your sample data and excepted result to me if you don't have any Confidential Information.Please upload your files to One Drive and share the link here.

 

Regards,

Frank

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

View solution in original post

2 REPLIES 2
v-frfei-msft
Community Support
Community Support

Hi @Anonymous ,

 

One sample for your reference. We can create multi measures to work on it.

 

a = CALCULATE(SUM(Table1[values]),FILTER(Table1,Table1[name]="a"))
B = CALCULATE(SUM(Table1[values]),FILTER(Table1,Table1[name]="b"))
C = CALCULATE(SUM(Table1[values]),FILTER(Table1,Table1[name]="c"))
Others = 1000- CALCULATE(SUM(Table1[values]),ALL(Table1))

Capture.PNG

 

If it doesn't meet your requirement. Could you please share your sample data and excepted result to me if you don't have any Confidential Information.Please upload your files to One Drive and share the link here.

 

Regards,

Frank

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

Hi @Anonymous ,

 

Does that make sense? If so, kindly mark my answer as the solution to close the case please. Thanks in advance.

 

Regards,
Frank

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

Helpful resources

Announcements
PBIApril_Carousel

Power BI Monthly Update - April 2025

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

Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

April2025 Carousel

Fabric Community Update - April 2025

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

Top Solution Authors