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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

populating a column based on value in another column

Hi All,

 

I'm sure this has been answered before, but i've spent an hour looking for it and so far haven't been able to find what i need.

 

I have 3 columns shown below, what i need to do is take the status = done, take the weight and put the weight into the value column, if the status is not done put a 0.

 

statusWeightvalue
new750
new100
new50
done55
done55
inprogress100
inprogress50

 

Any help gratefully received.

 

Thanks,

 

Jeff

1 ACCEPTED SOLUTION
AntonioM
Solution Sage
Solution Sage

Hi @Anonymous ,

 

You could do this in Power query using the 'Add Conditional Column',

 

AntonioM_1-1661520080457.png

 

AntonioM_0-1661520068674.png

which will give you

 

AntonioM_2-1661520096578.png

 

 

View solution in original post

5 REPLIES 5
AlexSpencer
New Member

Hi @Anonymous 

 

You need to select "Transform Data" and then you should be able to action @AntonioM's reponse from there. 

AlexSpencer_1-1661522407797.png

 

Alex 

 

Anonymous
Not applicable

Hi @AlexSpencer,

 

Thanks, i found it at last.

 

BR,

Jeff

AntonioM
Solution Sage
Solution Sage

Hi @Anonymous ,

 

You could do this in Power query using the 'Add Conditional Column',

 

AntonioM_1-1661520080457.png

 

AntonioM_0-1661520068674.png

which will give you

 

AntonioM_2-1661520096578.png

 

 

Anonymous
Not applicable

Hi @AntonioM ,

 

I'm going to accept this as the solution, as I am sure that is the way to do it, but my powerBI doesn't have that add column tab, will have to find out how to get that.

 

JeffT_0-1661520924128.png

 

Thanks,

 

Jeff

 

Anonymous
Not applicable

Hi Jeff, that's because @AntonioM says to do it in Power Query, not in Power BI. To go there, you have to click on the “Transform Data” button (it appears in your picture) and then follow his instructions.

Greetings.

 

 

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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.