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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
Anonymous
Not applicable

Tooltip page - Show percentage in the Stacked Bar Chart

Hi everyone, I have the next issue:

In my datasource I have a order and this order can have different type of cancellations, in this chart Im showing all cancellation with the type Influencable:

ruz_lee_2-1622014641820.png

 

This is the measure that Im using to calculate the number of influencable cancellation:

 
Count INF Cancellation = CALCULATE(
DISTINCTCOUNT(OrderDetails[OrderID])+0,
FILTER(OrderDetails,OrderDetails[Cancellation Type]="Influenceable"))
 

I have to show in the tool tip of each bar, the total percent, really would be easy if I add the measure "Count INF Cancellation" to the tooltip and I put to show the value like "percent of grand total":

ruz_lee_3-1622014960215.png

Which is the problem? My problem is that in the tooltip only want to show the percentage, not the other values like the reason and "Count INF Cancellation", like is not possible to remove this values from the tooltip of this bar chart, the only way would be to create a tooltip page that show this percentage, but Im not sure how to create this measure, until now the my measure created always show the 100% beause is applying automaticallyt the filter of reason type in the different bar of the chart.

ruz_lee_4-1622018190042.png

Any idea o suggestion? Thanks a lot.

1 ACCEPTED SOLUTION
MFelix
Super User
Super User

Hi @Anonymous ,

 

You need to create a new measure with the following code:

 

Count INF Cancellation =
DIVIDE (
    [Count INF Cancellation],
    CALCULATE ( [Count INF Cancellation], ALL ( Table[Reasons] ) )
)

 

 

If this does not work can you share a small sample of your data please.


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



View solution in original post

2 REPLIES 2
MFelix
Super User
Super User

Hi @Anonymous ,

 

You need to create a new measure with the following code:

 

Count INF Cancellation =
DIVIDE (
    [Count INF Cancellation],
    CALCULATE ( [Count INF Cancellation], ALL ( Table[Reasons] ) )
)

 

 

If this does not work can you share a small sample of your data please.


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



Anonymous
Not applicable

Thanks @MFelix , I was using in my measure the function AllSelected instead of ALL and in the tooltip always showed 100%.

Thanks a lot!

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.