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
pmaurizi
Frequent Visitor

Two fileds, same visual, need to see all the data labels

Hi, I need help with this problem:

In a bar chart, I need to display two fields.

But not both together, but to show one or another, depending on the value selected in a slicer
One of the fields represents percentages, and the other represents absolute numeric values.


I use a stacked bar chart and it works fine.

But the problem is that for small values it does not show the data labels.


If I place only one of the fields in the chart, the data labels are shown, but if I place both, even if both are never shown together, it does not show the data labels.


How can I do to show one or the other field in the same chart, keeping each one its format (percentage or number), and always showing the data labels?


I attach screenshots to help understanding.

Thank you very much!

pmaurizi_0-1616516841685.pngpmaurizi_1-1616516921725.pngpmaurizi_2-1616517017164.png

 

1 ACCEPTED SOLUTION
MFelix
Super User
Super User

Hi @pmaurizi ,

 

You can achieve this with bookmarks creating two visualizations

 

https://docs.microsoft.com/en-us/power-bi/create-reports/desktop-bookmarks

 

Or this can also be done using the calcuted groups with external tools.

https://docs.microsoft.com/en-us/analysis-services/tabular-models/calculation-groups?view=asallprodu...

 

https://www.fourmoo.com/2020/04/29/how-to-create-and-use-calculation-groups-in-power-bi-premium-azur...

 

However be aware that if you use this option you won't be abble to use implicit measures on your model anymore, meanig you cannot drag as column to a chart and make a sum or a count you will need to star using measures for all calculations.


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

1 REPLY 1
MFelix
Super User
Super User

Hi @pmaurizi ,

 

You can achieve this with bookmarks creating two visualizations

 

https://docs.microsoft.com/en-us/power-bi/create-reports/desktop-bookmarks

 

Or this can also be done using the calcuted groups with external tools.

https://docs.microsoft.com/en-us/analysis-services/tabular-models/calculation-groups?view=asallprodu...

 

https://www.fourmoo.com/2020/04/29/how-to-create-and-use-calculation-groups-in-power-bi-premium-azur...

 

However be aware that if you use this option you won't be abble to use implicit measures on your model anymore, meanig you cannot drag as column to a chart and make a sum or a count you will need to star using measures for all calculations.


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



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