Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
Power query from dax?
Hello can anyone help me optimize this query from dax into Powerquery?
Solved! Go to Solution.
Assuming these are all column references it would be something like the following
if [CONSENT] ="CSC" then
if [OUTCOME_Msh_FLAG] ="Y" then
if [Msh_DEC_DTTM] = null then -1
else [Msh_Timeliness]
else [Timeliness]
else [Timeliness]
Hi @jaltoft
In Power query , the formula for IF function is like this:
if "if-condition" then "true-expression" else "false-expression"
So for your Dax ,we can convert it like this:
if [CONSENT]="CSC" then if [OUTCOME_Msh_FLAG]="Y" then if [Msh_DEC_DTTM]=null then -1 else [Msh_Timeliness] else [Timeliness] else [Timeliness]
And the result is the same as DAX
Best Regards
Community Support Team _ Ailsa Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @jaltoft
In Power query , the formula for IF function is like this:
if "if-condition" then "true-expression" else "false-expression"
So for your Dax ,we can convert it like this:
if [CONSENT]="CSC" then if [OUTCOME_Msh_FLAG]="Y" then if [Msh_DEC_DTTM]=null then -1 else [Msh_Timeliness] else [Timeliness] else [Timeliness]
And the result is the same as DAX
Best Regards
Community Support Team _ Ailsa Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Assuming these are all column references it would be something like the following
if [CONSENT] ="CSC" then
if [OUTCOME_Msh_FLAG] ="Y" then
if [Msh_DEC_DTTM] = null then -1
else [Msh_Timeliness]
else [Timeliness]
else [Timeliness]
User | Count |
---|---|
128 | |
108 | |
99 | |
65 | |
62 |
User | Count |
---|---|
136 | |
113 | |
102 | |
71 | |
60 |