March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Greetings,
I need to perform a DAX calculation that looks at columns C and D and if they are over a certain number then a return colum should say 'Fail' otherwise 'Pass". The problem I am having is that my report keep on suggesting key measures instead of the actual table and column. When I just type the table with the colum i.e. 'Table'['results'] or 'Table'[results]. The program doesnt like it and gives me an error. I thought it was because the C and D columns were sum but that is not the case. Thanks in advance.
Solved! Go to Solution.
Hi @Anonymous
Please show us your data and the DAX you are trying to write. Really hard to see the issue without them.
That said, I'm guessing that you are might be trying to write a measure and DAX is telling you that you need to provide an aggregation for the column.
Also, is it a Fail if both C and D are over a certain number, or is it just one or the other over a certain number?
If you are writing DAX to create a column it could look like this which produces Fail if both C and D are over 20. Adjust as required.
Result = IF([C] > 20 && [D] > 20, "Fail", "Pass")
Regards
Phil
Proud to be a Super User!
Thanks again.
Hi @Anonymous ,
If it is to calculate the sum of metrics, you can use the SUMX function.
SUMX(<table>, <measure>)
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous
Please show us your data and the DAX you are trying to write. Really hard to see the issue without them.
That said, I'm guessing that you are might be trying to write a measure and DAX is telling you that you need to provide an aggregation for the column.
Also, is it a Fail if both C and D are over a certain number, or is it just one or the other over a certain number?
If you are writing DAX to create a column it could look like this which produces Fail if both C and D are over 20. Adjust as required.
Result = IF([C] > 20 && [D] > 20, "Fail", "Pass")
Regards
Phil
Proud to be a Super User!
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
123 | |
85 | |
85 | |
70 | |
51 |
User | Count |
---|---|
205 | |
153 | |
97 | |
79 | |
69 |