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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.