Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and a 50 percent discount on exams.
Get startedEarn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
I am trying to re write this query from POWER query using DAX and i cant figure out the syntax. can anyone point me in the right direction?
= Table.AddColumn(Source, "Custom", each if((Date.From([ACT_START_DATE]) <>"" ) and (Date.From([ACT_END_DATE]) = "") or
(Date.From([START_DATE]) <= Date.AddDays(Date.From(DateTime.LocalNow()),2))) then (Date.From(Date.AddDays([FINISH_DATE],-1))) else null)
Solved! Go to Solution.
try
New column =
IF (
( NOT ( ISBLANK ( 'Table'[start date] ) ) && ISBLANK ( 'Table'[End date] ) )
|| 'Table'[start date]
<= TODAY () + 2,
'Table'[End date] - 1
)
try
New column =
IF (
( NOT ( ISBLANK ( 'Table'[start date] ) ) && ISBLANK ( 'Table'[End date] ) )
|| 'Table'[start date]
<= TODAY () + 2,
'Table'[End date] - 1
)