Forum Discussion
smjzahid
Helper V
6 years agoHow to use Datediff in power query
I want to create a conditional or a custom column within Power Query (using M) and NOT DAX, Here is my requirement if [Consent Application Submitted] is not blank and [Consent Application Submitt...
- 6 years ago
Hi smjzahid ,
You could refer to the following codes:
if Duration.Days(Date.From(DateTime.LocalNow())-[Date])>42 then "White" else "Red"
v-eachen-msft
Community Support
6 years agoHi smjzahid ,
You could refer to the following codes:
if
Duration.Days(Date.From(DateTime.LocalNow())-[Date])>42
then "White"
else "Red"