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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
Anonymous
Not applicable

Change to Value to zero if it does not exist

Hi Team,

 

I need help on this.

 

I create a report using bar chart and matrix (see figure 1) but my challenge now is if select a value from the filter the two charts are no longer aligned. I need how how to manage this even if its a DAX query that sets the value that does not exist to zero so that the filed will not disappear from the charts.

 

Fig 1

 

 

Before applying filterBefore applying filter

 

Fig 2

 After applying filterAfter applying filter

 

1 ACCEPTED SOLUTION

@Anonymous

 

Please see the screenshot below. I hope that answers your question. 

 

All you have to do is to click on "Show Items with no data" from the field dropdown

Show Values with no data.png

View solution in original post

5 REPLIES 5
Anonymous
Not applicable

Hi Team,

 

I need help on this.

 

I create a report using bar chart and matrix (see figure 1) but my challenge now is if select a value from the filter the two charts are no longer aligned. I need how how to manage this even if its a DAX query that sets the value that does not exist to zero so that the filed will not disappear from the charts.

 

Fig 1

 

 

Before applying filterBefore applying filter

 

Fig 2

 After applying filterAfter applying filter

 

Anonymous
Not applicable

add 

+ 0

to the end of your code.  That way, when it evaluates to a blank, it will add 0, and force a 0 to appear.  Then the column won't disappear from your matrix

Anonymous
Not applicable

Brilliant, worked like a charm!  Thanks!

Anonymous
Not applicable

It didnt work for me.

@Anonymous

 

Please see the screenshot below. I hope that answers your question. 

 

All you have to do is to click on "Show Items with no data" from the field dropdown

Show Values with no data.png

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

Find out what's new and trending in the Fabric Community.

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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