Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
I have a date table and my fact table.
My fact table has Due Dates.
I want to have a slicer of dates that will filter the due dates of the table i have.
for example:
Slicer date is 31/08/2019
what will show are all the due dates from 31/08/2019 backwards.
I also want to see the delay days. Delay days will be datediff of selected date from slicer and due date
Slicer: 31/08/2019
Table:
Doc No. Due Date Delay Days
ABC-01 23/07/2019 39
ABC-02 30/07/2019 32
ABC-03 15/08/2019 16
ABC-04 22/08/2019 9
ABC-05 30/08/2019 1
ABC-06 31/082019 0
If I want to go back, like this:
Slicer: 20/08/2019
Table:
Doc No. Due Date Delay Days
ABC-01 23/07/2019 28
ABC-02 30/07/2019 21
ABC-03 15/08/2019 5
I know this can be done in power bi.
But I don't know how I will connect the date table to the fact table.
I will appreciate any help. Thank you!
Solved! Go to Solution.
@mussaenda add following two measures and see if it works
Is date before max date = VAR __date = MAX( 'Calendar'[Date] ) RETURN CALCULATE( COUNTROWS( 'Table 1' ), 'Table 1'[Due Date] <= __date)
Delay Days = DATEDIFF( MAX( 'Table 1'[Due Date] ), MAX( 'Calendar'[Date] ), DAY ) *
DIVIDE( [Is date before max date],[Is date before max date] )
in table visual add following
- Doc No
- Due Date
- Delay Days
and you will get the result
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
@mussaenda add following two measures and see if it works
Is date before max date = VAR __date = MAX( 'Calendar'[Date] ) RETURN CALCULATE( COUNTROWS( 'Table 1' ), 'Table 1'[Due Date] <= __date)
Delay Days = DATEDIFF( MAX( 'Table 1'[Due Date] ), MAX( 'Calendar'[Date] ), DAY ) *
DIVIDE( [Is date before max date],[Is date before max date] )
in table visual add following
- Doc No
- Due Date
- Delay Days
and you will get the result
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
Hi @parry2k,
Should I create a relationship between the date table and the fact able using the due date and dates to create these?
@mussaenda no you don't need that relationship
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
Yay! Awesome it works!
Thank you!
But.. It only works on the table.
If I want to work it on the whole page like a filter?
I mean, The blank on the delay days meaure I want to hide on the whole page.
Can we convert it to a calculated column?
But, your mesaure is a big step forward for me. Thank you @parry2k !!
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 103 | |
| 80 | |
| 58 | |
| 51 | |
| 46 |