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
Hello all experts,
I want a DAX fromula No. of days between order date and Todays date in DirectQuery mode
In above screenshot, 12/08/22 is my Order Date and 31/10/22 is Todays date so, No. of days between date is 80
So, I want Dax Formula which is Applied in DirectQuery mode,
I used this DAX,
Day Count = DATEDIFF(Query1[orderdate],Today(),DAY)
But it is not applicable.
Meaasge if anything require.
Solved! Go to Solution.
Try
Day Count = DATEDIFF(SELECTEDVALUE(Query1[orderdate]),Today(),DAY)
Try
Day Count = DATEDIFF(SELECTEDVALUE(Query1[orderdate]),Today(),DAY)
Yes it worked. Thanks
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 |
|---|---|
| 9 | |
| 9 | |
| 8 | |
| 6 | |
| 5 |
| User | Count |
|---|---|
| 23 | |
| 16 | |
| 15 | |
| 14 | |
| 8 |