Forum Discussion
Return a Value
- Anonymous5 years ago
Hi Anand24
The example could be something like this, there is another data but for the calculation I need, is based on this two fields, as you can see, it returns only one value, but in the data, there is 3 values that are "true" based on the expresion:
Column = IF(Table1[value] >= "98%", Table1[value2])
Value1 Value2 Result 50% BD1 BD5 45% BD2 BD5 98% BD3 BD5 99% BD4 BD5 100% BD5 BD5 On the table chart, it appears as Fist of Column, maybe that could be the error, there is a way to change that too?
Best Regards and thanks for your help
- 5 years ago
Anonymous ,
I'm able to understand your query very vageuly but Try creating a calculated measure with the same formula.
Also, what should be shown for false cases? In your example, for 50% and 45%.Try the below DAX as well:
Conditional Measure = IF(Table[Value1] >= 0.98,Table[Value2],BLANK())
Give a Thumbs Up if this post helped you in any way and Mark This Post as Solution if it solved your query !!!
Proud To Be a Super User !!!
LinkedIn - 5 years ago
Hi Anonymous ,
Base data:
Column = IF('Table'[Value1]>= 0.98, 'Table'[Value2])The result output is correct.And Check your value1 type,if question still not solved ,could you pls share your pbix flie?
And remember to remove confidential data.
Best Regards
Lucien
Hi Anand24
The example could be something like this, there is another data but for the calculation I need, is based on this two fields, as you can see, it returns only one value, but in the data, there is 3 values that are "true" based on the expresion:
Column = IF(Table1[value] >= "98%", Table1[value2])
| Value1 | Value2 | Result |
| 50% | BD1 | BD5 |
| 45% | BD2 | BD5 |
| 98% | BD3 | BD5 |
| 99% | BD4 | BD5 |
| 100% | BD5 | BD5 |
On the table chart, it appears as Fist of Column, maybe that could be the error, there is a way to change that too?
Best Regards and thanks for your help
Anonymous ,
I'm able to understand your query very vageuly but Try creating a calculated measure with the same formula.
Also, what should be shown for false cases? In your example, for 50% and 45%.
Try the below DAX as well:
Conditional Measure = IF(Table[Value1] >= 0.98,Table[Value2],BLANK())
Give a Thumbs Up if this post helped you in any way and Mark This Post as Solution if it solved your query !!! Proud To Be a Super User !!! |