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
dsabsi
Advocate I
Advocate I

Need help with an IF formula

Hi guys, 

 

I need your help with creating an IF-formula in Power BI which shows me the following situation:

IF two names are beneath each other AND in the next column for the same rows , there is atleast ONE Yes, then show me "Check is done" .. IF that's not true show me "Check is not done" .needhelp.JPG

 

 

 

To illustrate this so that i'm clear, see the below print screen, I want to have the text in the third column 

 

All my columns have the text format. 

Many Thanks!!, 

 

DSabsi

1 ACCEPTED SOLUTION
CheenuSing
Community Champion
Community Champion

Hi @dsabsi

 

Try the following

 

1. Add an index column from 1 using the query editor.

 

2. Create a column in your table as

Status = IF (Calculate(DistinctCOUNT((DoneorNot[CheckDone]))+0, Filter(DoneorNot,DoneorNot[CheckDone]= "Yes" && EARLIER(DoneorNot[Name]) = DoneorNot[Name])) >0,"Check is done", "Check is not Done" )

 

3. Now plot the table using Index, Name, CheckDone, Status

 

Sample screen shot

 

Capture.GIF

 

If this works for you please accept this as a solution adn also give KUDOS.

 

Cheers

 

CheeenuSing

 

Did I answer your question? Mark my post as a solution and also give KUDOS !

Proud to be a Datanaut!

View solution in original post

2 REPLIES 2
CheenuSing
Community Champion
Community Champion

Hi @dsabsi

 

Try the following

 

1. Add an index column from 1 using the query editor.

 

2. Create a column in your table as

Status = IF (Calculate(DistinctCOUNT((DoneorNot[CheckDone]))+0, Filter(DoneorNot,DoneorNot[CheckDone]= "Yes" && EARLIER(DoneorNot[Name]) = DoneorNot[Name])) >0,"Check is done", "Check is not Done" )

 

3. Now plot the table using Index, Name, CheckDone, Status

 

Sample screen shot

 

Capture.GIF

 

If this works for you please accept this as a solution adn also give KUDOS.

 

Cheers

 

CheeenuSing

 

Did I answer your question? Mark my post as a solution and also give KUDOS !

Proud to be a Datanaut!

Many thanks!! @CheenuSing

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.