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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
EugenioProlog
Helper II
Helper II

Dynamic Data Slicer filtering date column

Hello!

EugenioProlog_0-1743509338266.png

I have a simple data slicer filtering a date column. Is there a way to make my Max limit date to be The last day of the NEXT month? (it has to change dynamically every month)

1 ACCEPTED SOLUTION
danextian
Super User
Super User

Hi @EugenioProlog 

 

You can either filter the date table in the query editor to load dates up to the last day of the next month assuming you won't have a need for them or create a column that checks whether a date is <=last date of the next month and use that as a filter. Here's a sample DAX calc column

Check = 
VAR _timezone = 8 -- Define the user's timezone offset (e.g., UTC+8)
VAR _today =
    INT ( UTCNOW () + DIVIDE ( _timezone, 24 ) )
RETURN
    CalendarTable[Date] <= EOMONTH ( _today, 1 )

 

danextian_1-1743513269904.png

danextian_0-1743513251459.png





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

View solution in original post

3 REPLIES 3
v-ssriganesh
Community Support
Community Support

Hi @EugenioProlog,
Thank you for reaching out to the Microsoft Fabric Forum Community, and thanks to @lbendlin & @danextian for sharing valuable insights.

Could you please confirm if your query has been resolved by the provided solution? If so, please mark it as the solution. This will help other community members solve similar problems faster.

Thank you.

danextian
Super User
Super User

Hi @EugenioProlog 

 

You can either filter the date table in the query editor to load dates up to the last day of the next month assuming you won't have a need for them or create a column that checks whether a date is <=last date of the next month and use that as a filter. Here's a sample DAX calc column

Check = 
VAR _timezone = 8 -- Define the user's timezone offset (e.g., UTC+8)
VAR _today =
    INT ( UTCNOW () + DIVIDE ( _timezone, 24 ) )
RETURN
    CalendarTable[Date] <= EOMONTH ( _today, 1 )

 

danextian_1-1743513269904.png

danextian_0-1743513251459.png





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.
lbendlin
Super User
Super User

You can add that filter to the Power Query transforms assuming your Dates table is in import mode and is refreshed at least monthly.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.