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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
M-M-P
Helper III
Helper III

How to use data from a column in a measure?

Hi
Maybe there is a very simple solution to this, but I can't find anything that helps.

 

As you can see below, I have a column with "Yes" and "No".

Dataset3.png
I would like a measure to examine, row by row, whether it says Yes or No.

 

Something like this:

Measure = IF(Table[Yes No] = "Yes", "Good", "Bad")

Thanks

1 ACCEPTED SOLUTION
v-diye-msft
Community Support
Community Support

Hi @M-M-P 

 

You can also use a measure below:

Measure = IF(Max(Table[Yes No]) = "Yes", "Good", "Bad")

Please kindly mark the answer as a solution if it helps. thanks a lot!

 

Community Support Team _ Dina Ye
If this post helps, then please consider Accept it as the solution to help the other members find it more
quickly.

View solution in original post

3 REPLIES 3
v-diye-msft
Community Support
Community Support

Hi @M-M-P 

 

You can also use a measure below:

Measure = IF(Max(Table[Yes No]) = "Yes", "Good", "Bad")

Please kindly mark the answer as a solution if it helps. thanks a lot!

 

Community Support Team _ Dina Ye
If this post helps, then please consider Accept it as the solution to help the other members find it more
quickly.
amitchandak
Super User
Super User

I think you should able to create it as column not measure

Column =IF(Table[Yes No] = "Yes", "Good", "Bad")

Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution.
Thanks.

Hi @amitchandak 
Thanks for your input.
It might be the best solution 🙂

 

Thanks.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.