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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
shiex1
Frequent Visitor

Date slicer having more month than the date column in date table

Hello everyone,

 

I havet this date slicer to select a specific billing cycle (month). The slicer has all 2024 months in the drop down. However, the date column in the date table only has up to March 2024. Can anyone help me understand why the drop down has more months than the values in the table? Additionally, how can i limit the month in the drop down slicer for 2024 to only have January at this point despite that the date values in date table is currently at March 2024.

 

Thank you.

shiex1_0-1707932289811.png

shiex1_1-1707932358943.png

 

 

2 REPLIES 2
talespin
Solution Sage
Solution Sage

hi @shiex1 

 

Date dimension should have all the dates, but you can filter your slider values based on any logic you want.

 

You could do something like this, modify the logic to your need.

Create a Calculated Column in your Date table.

IsOrderDate =

VAR _CurrSelectedDate = 'Date'[Date]
VAR _IsOrderDate = CALCULATE( MAX(Orders[Order Date]), Orders[Order Date] = _CurrSelectedDate)
RETURN IF( ISBLANK(_IsOrderDate), 0 , 1)

 

Put a filter on your slicer in Filter pane. It will show only those dates that you want to show.

lbendlin
Super User
Super User

This is standard and recommended behavior.  Your slicer should be fed by your Dates dimension table Date column, not by your fact date column.

 

Is this actually distracting your report users?

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

AugPowerBI_Carousel

Power BI Monthly Update - August 2024

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

August Carousel

Fabric Community Update - August 2024

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