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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
kamalbandam
Helper III
Helper III

Table values show for all dates when filtered with year where blanks are replaced with zeros

Hello,

 

I have a measure that has Blanks when it kept in the table values. So I replaced the blanks with zeros using Dax i.e 
If(ISBLANK(Measure),0,Measure)

The problem is that in the table it showing the values of the previous year too even though when I filter the data.

Can anyone help?

 

Thanks in advance.

5 REPLIES 5
v-xicai
Community Support
Community Support

Hi @kamalbandam ,

 

Could you please show us your [measure] in formula and issue sceemshot for further analysis? You may also try to share your data sample by uploading it to OneDrive and post the link here. Do mask sensitive data before uploading.

 

Best Regards,

Amy 

Hi @v-xicai ,

 

I have used this formula to replace blanks = If(ISBLANK(Measure),0, Measure).

asfdjklkjasdfk.png

The issue is like we have two tables as follows:

 

 

asfdjklkjasdfk.png

The right table has no values for 2009 and 2010 so it is blank and not displaying. So, when I used the above measure the left table is showing all values.

Hi @kamalbandam ,

 

From your description, would you like to get one blank row when you filter data,  instead of two blank rows for 2009 and 2010?

 

Best Regards,

Amy 

amitchandak
Super User
Super User

@kamalbandam , you have re-enforce the filter on this statement

 

calculate(If(ISBLANK(Measure),0,Measure),filter(Date,...)

 

As it creates a left join in such cases and give all values

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Hi @amitchandak,

I have tried it, but it didn't work.
Could you provide an alternative solution?

 

 

Helpful resources

Announcements
October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Kudoed Authors