Forum Discussion
Problems with "If" formula
- Anonymous6 years ago
No Problemo mi amigo. Mi espanol es mal, pero Google Translate works lol. That error is usually due to trying to create a measure instead of a calculated column. Check out the link below:
https://community.powerbi.com/t5/Desktop/Measure-single-value-cannot-be-determined/td-p/65612
If you were trying to create another measure, you will likely need to create a calculated column instead.
If this helps please give Kudos
If this fixes your problem please accept it as a solution
The formula i am using is the next:
No Problemo mi amigo. Mi espanol es mal, pero Google Translate works lol. That error is usually due to trying to create a measure instead of a calculated column. Check out the link below:
https://community.powerbi.com/t5/Desktop/Measure-single-value-cannot-be-determined/td-p/65612
If you were trying to create another measure, you will likely need to create a calculated column instead.
If this helps please give Kudos
If this fixes your problem please accept it as a solution
- Anonymous6 years agoNot applicable
Thanks that helped a lot.
But now I have another problem.
The formula [MTTR DIC] mentioned above its affected by a filter I create, so, when I change the filter, "A3" should change too because this one depends on [MTTR DIC] but it doesnt change.
How can I fix that?
Thanks Amigo
- Anonymous6 years agoNot applicable
Hey Anonymous
If my other post solved your initial question please accept it as the solution.
For your next question. I'm not sure I entirely understand. Where is the filtering happening?
Suggestions:
You can either use the FILTER function in your formula: https://docs.microsoft.com/en-us/dax/filter-function-dax
Or the LOOKUPVALUE function to lookup the value for the "A3" vaiable based on the filter: https://docs.microsoft.com/en-us/dax/lookupvalue-function-dax
LOOKUPVALUE functions much like vlookup in excel.
- Anonymous6 years agoNot applicable
Hey Anonymous
The measure [MTTR DIC] depends on variable call "ZONA".
Now, like you helped me, I create a calculated column like this:
A3 = IF([MTTR DIC]>[META MAX MTTR];1;0) ([META MAX MTTR] is a column of datas)
But the problem is than I can´t modify the datas of A3 with the filter like i do with [MTTR DIC], although both (A3 and [MTTR DIC]) depends on "ZONA".
I put some pictures below for better understanding