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
manisharora
Regular Visitor

Creating new column

Hi Team,

 

I have two table :- one is Product and 2nd is Order table.  We have UNIT COST field from Product table and QUANTITY field

from Order Table..

 

My requirment is to create a new column that would be named as "COST" that is formulated as (UNIT COST*QUANTITY)..

How can i get this column.....  please help me to resolve it..

 

Thanks

Manish Arora

 

 

1 ACCEPTED SOLUTION
KGrice
Memorable Member
Memorable Member

I imagine the Product table has one line item for each product. If that's the case, you can create a relationship between the Product table and Order table on the product identifier, e.g., ProductID, or whatever uniquely identifies the product. Look for the Manage Relationships button in the Home tab of the ribbon to get started with the relationship.

 

Once that's complete, you can create your new column in your Order table as

 

COST = RELATED(ProductTableName[UNIT COST]) * [QUANTITY]

  

View solution in original post

4 REPLIES 4
sagarika2017
Regular Visitor

Hi..i am new to power BI as well as new to this forum.

 

I am trying to create a new column by using an existing column in the conditional column formula

i am using if segment (existing column) contains mid, emerging then so n so

 

the values of segment column are mid, emerging and large and strategic. still i am not gettig the exact result. is the condition thing case sensitive?

sagarika2017
Regular Visitor

hi..i am new to Power BI and also to this forum.

 

i am trying to create a new column by giving a condition as if segment(an existing column) contains  mid, emerging and so on

the values of the segment column are mid, emerging, large etc. but still its not working. is the condition case senitive? how do we write mid, emerging??

KGrice
Memorable Member
Memorable Member

I imagine the Product table has one line item for each product. If that's the case, you can create a relationship between the Product table and Order table on the product identifier, e.g., ProductID, or whatever uniquely identifies the product. Look for the Manage Relationships button in the Home tab of the ribbon to get started with the relationship.

 

Once that's complete, you can create your new column in your Order table as

 

COST = RELATED(ProductTableName[UNIT COST]) * [QUANTITY]

  

Thanks. GRice...it's working.. Smiley Happy

 

Best Regards

Manish Arora

Helpful resources

Announcements
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