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
UK_User123456
Resolver I
Resolver I

Sub Total within a total graph

Hi All,

 

Just wondering if there was a way to show sub total out of a grand total in a donut chart?

 

as an example, I was trying to do a donut chart that shows my grand total of customers and then the sub total of customers that we kept i.e.

 

grand total = 5000

Sub total = 2500

 

The totals are from the same fields within a table, so not sure if this is possible

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

Hi @UK_User123456 ,

 

You can create a calculated table incloud sub-total and grand-total.

Here's my sample data.

Raw table:

2.PNG

Calculated table:

Table 2 = UNION(DISTINCT(SELECTCOLUMNS('Table',"type","grand total","value",SUM('Table'[value]))),'Table')

 3.PNG

Result would be shown as below:

4.PNG

You can create a measure like below and add it to visual level filter to filter out the specific type.

Measure = IF(SELECTEDVALUE('Table 2'[type])="grand total"||SELECTEDVALUE('Table 2'[type])=SELECTEDVALUE('Table'[type]),1,BLANK())

5.PNG6.PNG 

 

Best Regards,

Jay

Community Support Team _ Jay Wang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.

View solution in original post

3 REPLIES 3
v-jayw-msft
Community Support
Community Support

Hi @UK_User123456 ,

 

You can create a calculated table incloud sub-total and grand-total.

Here's my sample data.

Raw table:

2.PNG

Calculated table:

Table 2 = UNION(DISTINCT(SELECTCOLUMNS('Table',"type","grand total","value",SUM('Table'[value]))),'Table')

 3.PNG

Result would be shown as below:

4.PNG

You can create a measure like below and add it to visual level filter to filter out the specific type.

Measure = IF(SELECTEDVALUE('Table 2'[type])="grand total"||SELECTEDVALUE('Table 2'[type])=SELECTEDVALUE('Table'[type]),1,BLANK())

5.PNG6.PNG 

 

Best Regards,

Jay

Community Support Team _ Jay Wang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.
amitchandak
Super User
Super User

The information you have provided is not making the problem clear to me. Can you please explain with an example.

Hi, 

 

Something like the below that was done in excel

 

Capture.PNG

 

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.