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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Anonymous
Not applicable

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

 

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

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

 

Many thanks!! @Anonymous

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.