Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
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...