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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live 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
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.