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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.