cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

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
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors