Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi All,
I have a data set similar to the below example.
| On Hire Date | Off Hire Date | Hire Duration (Days) |
| 01/01/2020 | 10/01/2020 | 10 |
| 02/01/2020 | 10/01/2020 | 9 |
I want to create a DAX formula that will show me any rows that are above 10 days for instance.
Please can anyone help?
Many thanks,
E
Solved! Go to Solution.
Hi @Anonymous ,
Hi @Anonymous ,
You could follow the way of @camargos88 to filter out in filter pane. Or you could use a IF function to implement it.
Please try this:
Measure =
var diff = DATEDIFF(MAX('Table'[On Hire Date]),MAX('Table'[Off Hire Date]),DAY)+1
return
IF(diff>=10, diff)
Hi @Anonymous ,
You could follow the way of @camargos88 to filter out in filter pane. Or you could use a IF function to implement it.
Please try this:
Measure =
var diff = DATEDIFF(MAX('Table'[On Hire Date]),MAX('Table'[Off Hire Date]),DAY)+1
return
IF(diff>=10, diff)
@Anonymous , refer if this can help
or datediff([On Hire Date],[Off Hire Date],day)+1
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 |
|---|---|
| 97 | |
| 73 | |
| 50 | |
| 47 | |
| 44 |