Forum Discussion

Crazydog's avatar
Crazydog
Frequent Visitor
3 years ago

How would I write this function in PBI ?

How would I write this function in PBI ? currently it is in tableau. 

 

IF [ Status ] = "# of Active"
and DATETRUNC('month',[Snapshot Date]) = DATETRUNC('month',DATEADD('month',-1,{MAX([Snapshot Date])}))

THEN [Issue Creation Date]

 

ELSEIF [Status ] = "# of Resolved"
and DATETRUNC('month',[Snapshot Date]) = DATETRUNC('month',DATEADD('month',-1,{MAX([Snapshot Date])}))

THEN [Date*]

 

END

2 Replies