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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
sharpedogs
Advocate II
Advocate II

Calculated Column maybe?

I am looking to create a new column based on two other columns. One of the data fields I am getting is incorrect so I need to correct it.

 

I have 6 different ISP ID's, and I want the new column to say

(If ISP ID = 123.456.556 Then Multiple the (Output) column by 1,000)

(If ISP ID = 123.556.789 Then just carry over the OutPut column) 

 

ISP ID (Text)Output (Number)End Result...
123.456.556 0.987 987
223.556.7671.231,230
123.556.7891.351.35

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Calculated column=switch(true(),table[id]="value1",table[output]*1000,table[output])

You can added multiple conditions as well by placing comma after 1000 and new condition and new output for condition...follow switch dax syntax.

But my recommendation is create Calculated column in power query for better performance with large datasets.

Thanks
Pravin

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Calculated column=switch(true(),table[id]="value1",table[output]*1000,table[output])

You can added multiple conditions as well by placing comma after 1000 and new condition and new output for condition...follow switch dax syntax.

But my recommendation is create Calculated column in power query for better performance with large datasets.

Thanks
Pravin

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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