Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowJuly 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more
Hello,
I want to set up a calendar that scales according to the minimum and maximum date of a column for each of the RLS roles.
Example:
- Global role :
Min column date : 01/01/2021, Max column date: 12/31/2021
Calendar start date : 01/01/2021, Calendar end date: 31/12/2021
Year month segment : 01/21 to 12/2021
- Role 1 :
Minimum date column : 05/06/2021, Maximum date column: 25/07/2021
Calendar start date : 05/06/2021 , Calendar end date: 25/07/2021
Year month Slicer : 06/21 to 07/2021
- Role 2:
Minimum date column : 08/09/2021, Maximum date column: 10/11/2021
Calendar start date : 08/09/2021 , Calendar end date: 10/11/2021
Year month Slicer : 09/21 to 11/2021
By setting the calendar start date to MIN(table[column date]) or FIRSTDATE(table[column date]) , the MIN/FIRSTDATE functions bypasses the RLS by always bringing up the global minimum date
Thanks
Solved! Go to Solution.
Hi @Plfrcs ,
Please find the below solution,
Date Dimension table,
Create the below measure,
By default it would be like below,
While you do the RLS based on the user, Dates in the slicer will be based upon the selected user as below,
Please like and mark my post as a solution if it answers your question. Thanks.
Hi @Plfrcs ,
Please find the below solution,
Date Dimension table,
Create the below measure,
By default it would be like below,
While you do the RLS based on the user, Dates in the slicer will be based upon the selected user as below,
Please like and mark my post as a solution if it answers your question. Thanks.
You have to distinguish between row filtering (what RLS does) and DAX function basics - if you use a function like CALENDARAUTO it will always create full calendar year ranges even if you limit the fact dates.
Use your own Calendar table, and refrain from using certain DAX time intelligence functions.
Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.
Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.
| User | Count |
|---|---|
| 22 | |
| 18 | |
| 18 | |
| 17 | |
| 13 |
| User | Count |
|---|---|
| 61 | |
| 53 | |
| 47 | |
| 40 | |
| 38 |