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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
Anonymous
Not applicable

Create a Calculated Column Based on 2 tables

I have this created this table which is a Union of several other tables. PowerBI screenshot.JPG

 

I want to add a Cost per INQ (top row example for Blackhat = $112,139 / 444 INQs = $252.56 = Cost/Inq) as a column on the end of this table. What is the best way to do this?

1 ACCEPTED SOLUTION
Anonymous
Not applicable

is both Cost and INQ columns are in the same source table ?

Option 1: you can create a Column in Power Query Editor

Option 2: create a measure as follows:

       Cost Per INQ = Cost - INQ

and drag it to this table Visual.

 

am not sure if am missing something but looks simple to me based on what you have provided below.

Thanks!

 

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

is both Cost and INQ columns are in the same source table ?

Option 1: you can create a Column in Power Query Editor

Option 2: create a measure as follows:

       Cost Per INQ = Cost - INQ

and drag it to this table Visual.

 

am not sure if am missing something but looks simple to me based on what you have provided below.

Thanks!

 

Anonymous
Not applicable

Without knowing how the data is set up, I'm not sure if this will solve your problem, but a measure built something like this should get the desired result:
Measure = 
DIVIDE (
    SUMX( table, table[cost]), SUMX( table2, table2[INQ]), 0)

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

AugPowerBI_Carousel

Power BI Monthly Update - August 2024

Check out the August 2024 Power BI update to learn about new features.

August Carousel

Fabric Community Update - August 2024

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