The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event! Join us in Stockholm, Sweden from September 24-27, 2024.
2-for-1 sale on June 20 only!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Hi,
Calculate no. of days from two different dates in Dax (e.g. start date is '2019-07-05' and end date is '2020-01-10').
Solved! Go to Solution.
Hi @vijay22kar
look at DATEDIFF() function https://docs.microsoft.com/en-US/dax/datediff-function-dax
DATEDIFF(DATE(2019,7,5), DATE(2020,1,10), DAY )
or
= DATEDIFF(Table[StartDate], Table[EndDate], DAY )
do not hesitate to give a kudo to useful posts and mark solutions as solution
Hi @vijay22kar
look at DATEDIFF() function https://docs.microsoft.com/en-US/dax/datediff-function-dax
DATEDIFF(DATE(2019,7,5), DATE(2020,1,10), DAY )
or
= DATEDIFF(Table[StartDate], Table[EndDate], DAY )
do not hesitate to give a kudo to useful posts and mark solutions as solution
and what is the problem?
whats your desired output?
do not hesitate to give a kudo to useful posts and mark solutions as solution
datediff(first_date,second_date,day)
Thanks & regards,
Pravin Wattamwar
www.linkedin.com/in/pravin-p-wattamwar
If I resolve your problem Mark it as a solution and give kudos.
check my blog here
https://community.powerbi.com/t5/Community-Blog/Connecting-to-a-Tabular-Model-Using-Power-BI/ba-p/91...
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the June 2024 Power BI update to learn about new features.
User | Count |
---|---|
61 | |
32 | |
20 | |
15 | |
15 |
User | Count |
---|---|
94 | |
33 | |
30 | |
24 | |
21 |