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