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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
JofrainVisda
Advocate I
Advocate I

Check if there is a particular value

Hello friends,

I just made my problem more simple for you to understand it quickly.
I just want to find a way to check if one of the rows from column E has a value of 1 from column F. If yes, proceed to next condition.
In the image below, I would like to check if the letter A,B or C has a value of 1 from column F. If letter A,B or C has a value of 1 from column F, it will not proceed to the next condition. Hope you can help me. Thank you!

JofrainVisda_0-1690877992236.png

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @JofrainVisda ,

 

What about this measure?

Measure = IF(CALCULATE(SUM('Table'[F]),FILTER(ALLSELECTED('Table'),[E]=MAX('Table'[E])))>0,"next condition","done")

vstephenmsft_0-1691400185568.png

                                                                                                                                                         

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.           

View solution in original post

4 REPLIES 4
Idrissshatila
Super User
Super User

Hello @JofrainVisda ,

 

yes , its like this   if ( TableName [F] = 1, if( column = second condition),result true,result false)

 

and here is the syntax by microsoft https://learn.microsoft.com/en-us/dax/if-function-dax

 

If I answered your question, please mark my post as solution, Appreciate your Kudos 👍

Follow me on Linkedin



Did I answer your question? Mark my post as a solution! Appreciate your Kudos
Follow me on LinkedIn linkedIn
Vote for my Community Mobile App Idea

Proud to be a Super User!




No sir. It will only check the current row and not for all the letters.

Example for letter A.
What I need is to check if letter A, regardless of the row, has a value of 1 from column F.

Anonymous
Not applicable

Hi @JofrainVisda ,

 

What about this measure?

Measure = IF(CALCULATE(SUM('Table'[F]),FILTER(ALLSELECTED('Table'),[E]=MAX('Table'[E])))>0,"next condition","done")

vstephenmsft_0-1691400185568.png

                                                                                                                                                         

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.           

Wow! Thank you so much it works! Will have to study about Filter and Allselected functions.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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