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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

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
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

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