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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
fern7
New Member

Removing months from slicer with no data

Hi All,

 

I have a table that I have uploaded to powerBI with dates ranging from begininning of July till end of November. I had put a slicer on the dashboard in dropdown view. However months from Jan - June have no data. Is there a way for the slicer to show the viewer of the dashboard only options July - November instead of showing all the months?

4 REPLIES 4
gmsamborn
Super User
Super User

Hi @fern7 

 

Would a measure like this help?  You can filter your visual with this.

 

_Include = 
VAR _CurrDt = SELECTEDVALUE( 'Date'[Date] )
VAR _MinDt =
    CALCULATE(
        MIN( 'FactTable'[Date] ),
        ALL( 'FactTable'[Date] )
    )
VAR _MaxDt =
    CALCULATE(
        MAX( 'FactTable'[Date] ),
        ALL( 'FactTable'[Date] )
    )
RETURN
    IF(
        _CurrDt >= _MinDt
            && _CurrDt <= _MaxDt,
        1
    )

 

 

SELECTEDVALUE( may have to be replaced with MAX( depending on how you intend to use it.

 



Proud to be a Super User!

daxformatter.com makes life EASIER!
o_belov
Advocate II
Advocate II

@fern7 

How did you get the names of the months from the dates?
Do you use an auxiliary calendar table of type dimDate in the model?

If you use month from auxiliary calendar table, then create measure for slicer, like

IsDateInScope =
     IF(SELECTEDVALUE(financials[Date]) IN VALUES(dimDate[Date]), 1, 0)

add it in filter pane for slicer and choose is 1
o_belov_0-1702923760939.png

 

o_belov
Advocate II
Advocate II

@fern7 ,
You've done some transformations of your dates?
First - try unselect "Show items with no data".

o_belov_0-1702921782888.png

 

@o_belov 

That option is unchecked and it still shows the months with no data.

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.