Forum Discussion
Token RightParen Error With IF Function
- 6 years ago
Hello Anonymous
DAX is the language to be used in your data model. Your original function posted is a mixture of DAX and Power Query.
Power Query is the mashup language used in Power BI to reshape your data.
However - this is the function in DAX
=if('Emergency Orders'[request_source], "Requested", "Not Requested")this is the power query version
=if #"Emergency Orders"[request_source] then "Requested" else "Not Requested"If this post helps or solves your problem, please mark it as solution (to help other users find useful content and to acknowledge the work of users that helped you)
Kudoes are nice too
Have fun
Jimmy
Thanks for your all's help. I ended up creating the column outside of PowerQuery and it worked fine? That was odd. Apparently the syntax for PowerQuery and creating a column directly from the report is different.
- Jimmy8016 years agoCommunity Champion
Hello Anonymous
DAX is the language to be used in your data model. Your original function posted is a mixture of DAX and Power Query.
Power Query is the mashup language used in Power BI to reshape your data.
However - this is the function in DAX
=if('Emergency Orders'[request_source], "Requested", "Not Requested")this is the power query version
=if #"Emergency Orders"[request_source] then "Requested" else "Not Requested"If this post helps or solves your problem, please mark it as solution (to help other users find useful content and to acknowledge the work of users that helped you)
Kudoes are nice too
Have fun
Jimmy