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

Displaying data label (x-axis) for a clustered column chart when there is zero value

Hi experts,

 

I am trying to "display" the data label of my graph where there is no data...

[reference to my graph, I have a subject-science of which no one achieve a quality pass (after my measure)]

 

no_value.jpg

How do I still keep that label on?

 

Thank you for your attention!

 

Cheers,

wilfredtsk

1 ACCEPTED SOLUTION

@wilfredtsk,

Do you have the "Fdn Science" value in your table?  Does you measure return blank value for the "Fdn Science" category? If so, create a new measure using DAX below, drag this new measure to the column chart and turn on data label.

NewMeasure= if(isblank([Measure]),0,[Measure])



Regards,

Lydia

Community Support Team _ Lydia Zhang
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

4 REPLIES 4
v-yuezhe-msft
Employee
Employee

@wilfredtsk,

I am not quite sure what is your expected result. How about you turn on data label.

1.PNG

Regards,
Lydia

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi Lydia,

 

Thank you for replying as always.

Here's my expected results..., i.e. showing that "Fdn Science"....

 

Windows_10.jpg

 

Warm Regards,

Wilfred

@wilfredtsk,

Do you have the "Fdn Science" value in your table?  Does you measure return blank value for the "Fdn Science" category? If so, create a new measure using DAX below, drag this new measure to the column chart and turn on data label.

NewMeasure= if(isblank([Measure]),0,[Measure])



Regards,

Lydia

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

@v-yuezhe-msft

 

Hi Lydia,

Wow! You are always awesome. Yes! It works. Thank you so much!

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.