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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
Gav254
Frequent Visitor

Show items with no data ignores date table visual filter

Hi

 

I'm hoping someone can help me.

 

I have a bar chart below which shows number of entries by month with a simple count measure. I have a visual filter from my date table which filters for the current FY.

However the graph jumps from September to January and i want to show the months in between with no data. As soon as i turn on "show items with no data" it shows all my date table dates and ignores the filter i've applied. I can't seem to solve it and it's doing my head in!! Any help greatly appreciated

 

Capture.PNG

1 ACCEPTED SOLUTION
NaveenGandhi
Super User
Super User

Hi @Gav254 

Just use this below DAX as a visual filter and make it to filter value 1.

Filter_ =
VAR M_ =
CALCULATE ( MIN ( 'Date'[Month] ), ALLSELECTED ( 'Date'[Date] ) )
VAR Y_ =
CALCULATE ( MIN ( 'Date'[Year] ), ALLSELECTED ( 'Date'[Date] ) )
RETURN
IF (
AND (
SELECTEDVALUE ( 'Date'[Month] ) && M_,
SELECTEDVALUE ( 'Date'[Year] ) && Y_
),
1,
0
)

NaveenGandhi_0-1723049551858.png



let me know if this helps.

If this post helps, then please consider Accept it as the solution to help the others find it more quickly. Appreciate you kudos!!

Follow me on LinkedIn!!!





View solution in original post

2 REPLIES 2
NaveenGandhi
Super User
Super User

Hi @Gav254 

Just use this below DAX as a visual filter and make it to filter value 1.

Filter_ =
VAR M_ =
CALCULATE ( MIN ( 'Date'[Month] ), ALLSELECTED ( 'Date'[Date] ) )
VAR Y_ =
CALCULATE ( MIN ( 'Date'[Year] ), ALLSELECTED ( 'Date'[Date] ) )
RETURN
IF (
AND (
SELECTEDVALUE ( 'Date'[Month] ) && M_,
SELECTEDVALUE ( 'Date'[Year] ) && Y_
),
1,
0
)

NaveenGandhi_0-1723049551858.png



let me know if this helps.

If this post helps, then please consider Accept it as the solution to help the others find it more quickly. Appreciate you kudos!!

Follow me on LinkedIn!!!





You my friend are genius! Thank you!

 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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