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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
jgriff2240
Microsoft Employee
Microsoft Employee

Adding 0s to blank measure causes measure to ignore date filter

Screenshot 2024-07-23 at 9.32.30 AM.pngScreenshot 2024-07-23 at 9.31.53 AM.png

The below picture is for the measure: Recordings with at least one obs filed

The above picture is for the measure: Recordings with at least one obs filed with zeroes

This measure is: CALCULATE([Recordings with at least one obs filed]) + 0

 

As you can see in the top picture the date range is 2/1/2024 to 3/31/2024; however, the measure Recordings with at least one obs filed with zeroes is ignoring that date filter and is showing data starting at Jan 2023.

 

How do I solve filling in blanks with 0s but have the date filtered applied to the measure as it would be expected? 

2 REPLIES 2
jgriff2240
Microsoft Employee
Microsoft Employee

I have tried adding  ALLSELECTED(vw_dimDate[dimDateID]) and KEEPFILTERS(vw_dimDate[dimDateID]) for 

Recordings with at least one obs filed with zeroes, but keep showing for dates outside of the filtered time frame

Anonymous
Not applicable

Hi @jgriff2240 ,

 

I create a sample to have a test, but I couldn't reproduce your issue.

I think if the column in date slicer and the column in matrix column field are both from Dimdate table, your matrix visual should be filtered by the slicer.

My Sample:

vrzhoumsft_0-1721790178392.png

Measure1 = CALCULATE(SUM('Table'[Value]))
Measure2 = CALCULATE(SUM('Table'[Value]))+0

Result is as below.

vrzhoumsft_1-1721790222793.png

Your issue may be caused by your data model. Please compare your data model and your measure with mine. If your issue still couldn't be resolved, please share a sample file with me.

 

Best Regards,
Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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