Forum Discussion
Returning a boolean value via Power Query M with data from multiple columns
- 8 years ago
Hello.
Thank you for your reply MarcelBeug.
I ended up finding an alternative solution. I was able to query for additional fields in my base query, one of which was an indicator for completion which makes my initial problem irrelevant and seems like the overall more elegant solution.
I will try to check out your proposal at a later stage out of curiousity.
Thanks again everybody.
-l
Thank you for providing the example code ibarrau. I am reading up on variables in DAX right now because I am getting an error and I am not sure yet why:
Moreover I am not sure what the # represents and it also looks like this line only checks for one status ("done"). In the problem I am currently working on several statuses can be used for the boolean to return TRUE. In the example of the OP the "Jan" milestone contains "Done" and "Dropped", the boolean should still return TRUE in this case.
Thank you for your help, much appreciated.
That's because you are trying to add the column in edit query where the language is power query "m". Check this example to add DAX column:
https://docs.microsoft.com/en-us/power-bi/desktop-tutorial-create-calculated-columns
Regards.