Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
Anonymous
Not applicable

Return a Value

Hello everyone

 

I would like to return a value from a column that is the result of an IF,

the value I want to return is a column when the value meets some condition: IF(Table1[value] >= "98", Table1[value2]), I can not use a mesure for the sintaxis of the IF

 

I can got the value that I need, but when I put on the table I need to display the information, It repeats the same value for all the columns.

 

There is a way to fix that?

 

Note: all the values on the table are not the same, that is why I don't know how to diplay the correct value.

 

3 ACCEPTED SOLUTIONS
Anonymous
Not applicable

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])

 

 

 

Value1Value2Result
50%BD1BD5
45%BD2BD5
98%BD3BD5
99%BD4BD5
100%BD5BD5

 

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

View solution in original post

@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())

PBI_SuperUser_Rank@1x.png  

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

View solution in original post

v-luwang-msft
Community Support
Community Support

Hi @Anonymous ,

Base data:

vluwangmsft_0-1629105482420.png

Column = IF('Table'[Value1]>= 0.98, 'Table'[Value2])

vluwangmsft_2-1629105616707.png

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

 

View solution in original post

5 REPLIES 5
v-luwang-msft
Community Support
Community Support

Hi @Anonymous ,

Has your problem been solved, if so, please consider Accept a correct reply as the solution or share your own solution to help others find it.

Best Regards
Lucien

v-luwang-msft
Community Support
Community Support

Hi @Anonymous ,

Base data:

vluwangmsft_0-1629105482420.png

Column = IF('Table'[Value1]>= 0.98, 'Table'[Value2])

vluwangmsft_2-1629105616707.png

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

 

Anonymous
Not applicable

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])

 

 

 

Value1Value2Result
50%BD1BD5
45%BD2BD5
98%BD3BD5
99%BD4BD5
100%BD5BD5

 

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())

PBI_SuperUser_Rank@1x.png  

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

Anand24
Super User
Super User

Hi @Anonymous ,
Can you provide some sample data and expected output? Both in Tabular format.
Also, are both value1 and value2 coming from the same table?

PBI_SuperUser_Rank@1x.png  

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

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors