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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
msuser48
Helper I
Helper I

Summarize data from multiple tables in ONE pie chart

I have 1 pie chart where I need to summarize data from 3 tables (table1, table2, table3).

Each table has X amount of rows, but the same column named "Review status" is in all tables with these values:
- Draft

- Proposed

- Finished

 

Each pie "slice" should represent each table (so a total of 3 pie slices will appear).

 

For each pie slice, it needs to highlight how many (as percentage AND number) values are "Finished" out of the total row amount.

 

So, if table1 had 60 values in "review status" labelled "Finished" out of a total of 100, the table1 pie slice should say 60 (60%) (number + percentage).

 

How to achieve this?

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @msuser48 ,

 

As far as I know ,Power BI currently only support us to show number + percentage of total in Pie. If you show three values in three tables in pie, the percentge by default will show by logic (number/ all numbers from three tables).

Here I suggest you to show percentge in each table by tooltip.

My Sample:

RicoZhou_0-1664257975082.png

Legend = 
{"table1","table2","table3"}

Measure:

Count in each table = 
SWITCH (
    MAX ( Legend[Value] ),
    "table1", CALCULATE ( COUNT ( table1[Review status] ) ),
    "table2", CALCULATE ( COUNT ( table2[Review status] ) ),
    "table3", CALCULATE ( COUNT ( table3[Review status] ) )
)
Percentage in each table = 
VAR _COUNT1 =
    CALCULATE ( COUNT ( table1[Review status] ) )
VAR _TOTAL1 =
    CALCULATE ( COUNT ( table1[Review status] ), ALL ( table1 ) )
VAR _COUNT2 =
    CALCULATE ( COUNT ( table2[Review status] ) )
VAR _TOTAL2 =
    CALCULATE ( COUNT ( table2[Review status] ), ALL ( table2 ) )
VAR _COUNT3 =
    CALCULATE ( COUNT ( table3[Review status] ) )
VAR _TOTAL3 =
    CALCULATE ( COUNT ( table3[Review status] ), ALL ( table2 ) )
RETURN
    SWITCH (
        MAX ( Legend[Value] ),
        "table1", DIVIDE ( _COUNT1, _TOTAL1 ),
        "table2", DIVIDE ( _COUNT2, _TOTAL2 ),
        "table3", DIVIDE ( _COUNT3, _TOTAL3 )
    )

Result is as below.

RicoZhou_1-1664258040343.png

 

Best Regards,
Rico Zhou

 

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

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @msuser48 ,

 

As far as I know ,Power BI currently only support us to show number + percentage of total in Pie. If you show three values in three tables in pie, the percentge by default will show by logic (number/ all numbers from three tables).

Here I suggest you to show percentge in each table by tooltip.

My Sample:

RicoZhou_0-1664257975082.png

Legend = 
{"table1","table2","table3"}

Measure:

Count in each table = 
SWITCH (
    MAX ( Legend[Value] ),
    "table1", CALCULATE ( COUNT ( table1[Review status] ) ),
    "table2", CALCULATE ( COUNT ( table2[Review status] ) ),
    "table3", CALCULATE ( COUNT ( table3[Review status] ) )
)
Percentage in each table = 
VAR _COUNT1 =
    CALCULATE ( COUNT ( table1[Review status] ) )
VAR _TOTAL1 =
    CALCULATE ( COUNT ( table1[Review status] ), ALL ( table1 ) )
VAR _COUNT2 =
    CALCULATE ( COUNT ( table2[Review status] ) )
VAR _TOTAL2 =
    CALCULATE ( COUNT ( table2[Review status] ), ALL ( table2 ) )
VAR _COUNT3 =
    CALCULATE ( COUNT ( table3[Review status] ) )
VAR _TOTAL3 =
    CALCULATE ( COUNT ( table3[Review status] ), ALL ( table2 ) )
RETURN
    SWITCH (
        MAX ( Legend[Value] ),
        "table1", DIVIDE ( _COUNT1, _TOTAL1 ),
        "table2", DIVIDE ( _COUNT2, _TOTAL2 ),
        "table3", DIVIDE ( _COUNT3, _TOTAL3 )
    )

Result is as below.

RicoZhou_1-1664258040343.png

 

Best Regards,
Rico Zhou

 

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

@AnonymousI managed to get most of this to work, however it does not show as percentage of the individual table here:

 

msuser48_1-1664278635129.png

It shows as "1,00" no matter which filter is applied. It should show as percentage of total in each individual table. How did you accomplish this?

 

 

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.