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

July 28 - August 9 | Final Round of the Power BI Dataviz World Championships. This is your chance. Learn more

Reply
stefc_01
Regular Visitor

Changing values

Hi! 

 

I am very new to powerbi and hoping someone can help me with this... 

 

I have 11 coloumns that have roughly 4000 rows containing a value between 1 and 11, how can i easily swap the values in these columns so that, 

1=11

2=10

3=9

4=8

5=7

6=6

7=5

8=4

9=3

10=2

11=1

 

or a forumla that would give me

 

1x11 + the sum of the amount of times the number 1 appears in the 11 columns

2x10+ sum of ""
3x9+ sum of ""

 

Many Thanks,

S

1 ACCEPTED SOLUTION
Anonymous
Not applicable

HI @stefc_01,

 

Please take a look at below article which about multi condition replace, I think it is suitable for your requirement.

Multi Condition Logic In Power Query

 

Regards,

Xiaoxin Sheng

View solution in original post

3 REPLIES 3
Vvelarde
Community Champion
Community Champion

@stefc_01

 

In Edit Query you can replace the Values.

 

Select all your columns before.




Lima - Peru

Thanks for the reply, 

 

That is i thought but how would you get past this problem..  if for example i change the original value of 4 to 8, how do i then change the original value of 8 to 4 without affecting the new value of 8 that i created ?

 

Once i get past the number 6 i would start overwriting the new values. 

Anonymous
Not applicable

HI @stefc_01,

 

Please take a look at below article which about multi condition replace, I think it is suitable for your requirement.

Multi Condition Logic In Power Query

 

Regards,

Xiaoxin Sheng

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.

Fabric Community Sticker Design Challenge Barcelona Carousel

Fabric Community Sticker Challenge - Barcelona 2026

If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!

July Power BI Update Carousel

Power BI Monthly Update - July 2026

Check out the July 2026 Power BI update to learn about new features.

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