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

Preparing for a certification exam? Ask exam experts all your questions on May 15th. Register now.

Reply
Diego11
Frequent Visitor

Conditional formatting based on different columns

Hi everyone,

 

 I have different clients, and I need to compare their scores from stage 1 with the scores from the latest stage they have recorded. The problem is that each stage is recorded in a new column and I don't know how to put a conditional formula between different columns, something like " if stage 3 exist, compare stage 3 with 1,  else if stage 2 exist compare stage 2 with stage 1, else null ) 

 

E.g.

Initial table 

User IDStage Score
001150%
001230%
001370%
002115%
002227%
003110%
003266%
003330%
004110%
005126%
005237%

 

 Result

User ID Diff. Score
00120%
00212%
00320%
004null
00511%

 

Does anyone have an idea of how I can do it?

 

I hope my explanation was clear,

Thank you so much in advance,

1 ACCEPTED SOLUTION
mussaenda
Super User
Super User

Hi @Diego11,

 

mussaenda_0-1691051371677.png

 

I did your requirement in Power query.

Attached is the pbix

hope this helps

 

 

View solution in original post

2 REPLIES 2
mussaenda
Super User
Super User

Hi @Diego11,

 

mussaenda_0-1691051371677.png

 

I did your requirement in Power query.

Attached is the pbix

hope this helps

 

 

Hi @mussaenda ,

 

 This helped me a lot! Thank you so much for your help

Helpful resources

Announcements
PBIApril_Carousel

Power BI Monthly Update - April 2025

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

Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

April2025 Carousel

Fabric Community Update - April 2025

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

Top Solution Authors