Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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]
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
113 | |
97 | |
85 | |
70 | |
61 |
User | Count |
---|---|
151 | |
121 | |
104 | |
87 | |
67 |