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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. 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
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.