Reply
Diego11
Frequent Visitor
Partially syndicated - Outbound

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

Syndicated - Outbound

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

Syndicated - Outbound

Hi @Diego11,

 

mussaenda_0-1691051371677.png

 

I did your requirement in Power query.

Attached is the pbix

hope this helps

 

 

Syndicated - Outbound

Hi @mussaenda ,

 

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

avatar user

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!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

March2025 Carousel

Fabric Community Update - March 2025

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

Top Solution Authors (Last Month)
Top Kudoed Authors (Last Month)