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
ArashZ
Helper I
Helper I

Pie chart for total payment

Hi everyone,

 

I have a table below and I want to create a pie chart to see how much payment comes from B2B, B2C, and Enterprise. Ideally, I want to have 3 legends (B2B, B2C, and Enterprise), but when I click on the Enterprise or hover over that, I want to see enterprise A and Enterprise B figures. Is there a way to write a measure or column to do that?

 

Company TypeTotal Payment
B2B20
B2B10
B2B12
B2C3
B2C4
B2C2
B2C1
Enterprise A100
Enterprise B150

 

 

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

Hi @ArashZ 

 

You may consider creating tooltip based on a report page.

 

1 Create a new page in your report, and create a table visual on it

vcazhengmsft_0-1635663070993.png

 

2 Slide Tooltip option to On in the Format pane

vcazhengmsft_1-1635663070995.png

 

3 Regulate its size in Page size section

vcazhengmsft_2-1635663070998.png

 

4 Back to pie chart page, choose report tooltip page as pie chart’s tooltip

vcazhengmsft_3-1635663071003.png

 

After this configuration, when you hover over pie chart. Tooltip will display like this:

vcazhengmsft_5-1635663204284.png

 

For more details about report tooltip, you can refer to Using report tooltip pages in Power BI - Power BI | Microsoft Docs.Also, attach the pbix file as a reference.

 

Best Regards,

Community Support Team _ Caiyun

 

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

 

View solution in original post

4 REPLIES 4
v-cazheng-msft
Community Support
Community Support

Hi @ArashZ 

 

You may consider creating tooltip based on a report page.

 

1 Create a new page in your report, and create a table visual on it

vcazhengmsft_0-1635663070993.png

 

2 Slide Tooltip option to On in the Format pane

vcazhengmsft_1-1635663070995.png

 

3 Regulate its size in Page size section

vcazhengmsft_2-1635663070998.png

 

4 Back to pie chart page, choose report tooltip page as pie chart’s tooltip

vcazhengmsft_3-1635663071003.png

 

After this configuration, when you hover over pie chart. Tooltip will display like this:

vcazhengmsft_5-1635663204284.png

 

For more details about report tooltip, you can refer to Using report tooltip pages in Power BI - Power BI | Microsoft Docs.Also, attach the pbix file as a reference.

 

Best Regards,

Community Support Team _ Caiyun

 

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

 

VahidDM
Super User
Super User

Hi Arash Jan,

 

You need to add a new column to your table to merge Enterprise A and Enterprise B to the Enterprise:

New Company Type = if(left([Company Type],10)="Enterprise","Enterprise",[Company Type])

 

then use this new column and Total Payment to create a Pie chart and add that Company Type column to the Tooltips to show Enterprise A and Enterprise B when you hover over Enterprise on Pie chart.

 

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

Appreciate your Kudos!!

 

@VahidDM 

 

Hi Vahid,

 

Thanks for your comment. I did this and created a pie chart with total payment as a value and added the company type as a Tooltips. However, it doesn't work. Tooltip only shows the first, last, and count of companies, not the breakdown of enterprises A and B.

@ArashZ '

 

Have you ever used Sunburst visual? I think that would be a good solution for your request, Check this link:

https://appsource.microsoft.com/en-us/product/power-bi-visuals/WA200000097?tab=Overview

 

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

Appreciate your Kudos!!

 

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.

Top Solution Authors