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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
JohnR1
New Member

filter dax

Hi guys,

I have a issue with filter of a report, the report filter 10 last years in a measeure calculeted but the user final want see of the selection years those have not amount, for example years 2018 and 2016 (check image) the request user final show report years load with value 0. I dont know what to do for solved issue. help me please.... Regards

 

image 1.pngimage 2.pngThanks!!!!

 

1 ACCEPTED SOLUTION
v-yuta-msft
Community Support
Community Support

Hi JohnR1,

 

I have reproduced your issue. In table DETALLE_CASOS, there's NULL value, right? I have made three sample tables(DETALLE_CASOS, HISTORICO, TIEMPO) like below based on your description:

2.PNG3.PNG4.PNG 

I then create a measure using your DAX formula and use the measure to create a line chart, I reproduced your issue like below.

11.PNG 

To solve this issue, you should replace NULL with 0, click Query Editor->Replace Values.

5.PNG 

After applied&close, you can see value 0 in the line chart.

1.PNG 

PBIX for your reference: https://www.dropbox.com/s/0dscajn1m1rwzkt/filter%20dax.pbix?dl=0 

 

Regards,

Jimmy Tao

 

View solution in original post

1 REPLY 1
v-yuta-msft
Community Support
Community Support

Hi JohnR1,

 

I have reproduced your issue. In table DETALLE_CASOS, there's NULL value, right? I have made three sample tables(DETALLE_CASOS, HISTORICO, TIEMPO) like below based on your description:

2.PNG3.PNG4.PNG 

I then create a measure using your DAX formula and use the measure to create a line chart, I reproduced your issue like below.

11.PNG 

To solve this issue, you should replace NULL with 0, click Query Editor->Replace Values.

5.PNG 

After applied&close, you can see value 0 in the line chart.

1.PNG 

PBIX for your reference: https://www.dropbox.com/s/0dscajn1m1rwzkt/filter%20dax.pbix?dl=0 

 

Regards,

Jimmy Tao

 

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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 Solution Authors