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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch 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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.

Top Solution Authors