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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
Thangavel_Raju
Frequent Visitor

Multiple conditions using cell reference in power query

Dear Friends,

 

My first message didn't go through I believe.  Hence the second message.

 

The first table is the master table.  The second is the transaction table.  The master table contains the salary slab, performance rating as exceptional, effective, competent and ineffective.  The transaction table contains the individual's ratings and basic salary.  Eg.  If someone's basic is less than 20700 and if his rating is exceptional 15% of basic, if effective 10% of basic, if competent 5% and ineffective 0% is the increment.  This has to be linked to the second table using column reference and not by hardcoding the amounts as the slabs in master will be variable.

 

Could someone help me to achieve the result please?

 

Thanks & regards.

 

Salary slabExceptionalEffectiveCompetentIn-effective

2070015%10%5%0%
2070114%9%4%0%
2900113%8%4%0%
4680112%7%3%0%
6560110%6%3%0%
844016%4%2%0%

EMP_IDNamePerformance RatingBASIC

182ESEffective100150
162MPPEffective96480
21017JREffective88620
130CREffective78310
16626SUCompetent65780
134JDEffective58060
85ESEffective48080
129RPEffective39880
206HSGCompetent30460
16567AARCompetent25790
210BBGCompetent18770
16904RSREffective16000

 

 

1 ACCEPTED SOLUTION
ImkeF
Community Champion
Community Champion

Hi @Thangavel_Raju ,
you can achieve this like so:
1) Check salary in master table and choose "Unpivot other columns"

2) Merge with transaction table on the new "Attribute"-column and the Rating column from the transaction table.

Imke Feldmann (The BIccountant)

If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!

How to integrate M-code into your solution -- How to get your questions answered quickly -- How to provide sample data -- Check out more PBI- learning resources here -- Performance Tipps for M-queries

View solution in original post

1 REPLY 1
ImkeF
Community Champion
Community Champion

Hi @Thangavel_Raju ,
you can achieve this like so:
1) Check salary in master table and choose "Unpivot other columns"

2) Merge with transaction table on the new "Attribute"-column and the Rating column from the transaction table.

Imke Feldmann (The BIccountant)

If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!

How to integrate M-code into your solution -- How to get your questions answered quickly -- How to provide sample data -- Check out more PBI- learning resources here -- Performance Tipps for M-queries

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors