cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
dconlon Occasional Visitor
Occasional Visitor

Create dynamic table from two tabels

HI there.

 

I have the following tables:

All_DataAllData.jpg

 

 

Rates_Data

Rates_Data.jpg

 

I am looking to create the following table:

Variance_DataVariance_Data.jpg

 

 

 

 

 

 

 

Any help is greatly appreciated!

 

donal

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Create dynamic table from two tabels

Hi @dconlon 

Create columns

In Table 1(Rates data)

Column1 = [project]&"-"&[client]&"-"&[wbs]&"-"&[teammate id]

In Table2(all data)

Column2 = [project]&"-"&[client]&"-"&[code]&"-"&[teammate name]

Create relationship between two tables based on column1 and column2

 

Then create columns in Table1

actual hours = CALCULATE(SUM(Table2[hours]),ALLEXCEPT(Table1,Table1[Column1]))

Column=[allocated hours]-[actual hours]
Capture2.JPG
 
Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
 

View solution in original post

1 REPLY 1
Community Support Team
Community Support Team

Re: Create dynamic table from two tabels

Hi @dconlon 

Create columns

In Table 1(Rates data)

Column1 = [project]&"-"&[client]&"-"&[wbs]&"-"&[teammate id]

In Table2(all data)

Column2 = [project]&"-"&[client]&"-"&[code]&"-"&[teammate name]

Create relationship between two tables based on column1 and column2

 

Then create columns in Table1

actual hours = CALCULATE(SUM(Table2[hours]),ALLEXCEPT(Table1,Table1[Column1]))

Column=[allocated hours]-[actual hours]
Capture2.JPG
 
Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
 

View solution in original post

Helpful resources

Announcements
Exclusive LIVE Community Event #3 – Ask Arun Anything

Exclusive LIVE Community Event #3 – Ask Arun Anything

Join us in the third Triple A event!

Meet the 2020 Season 1 Power BI Super Users!

Meet the 2020 Season 1 Power BI Super Users!

It’s the start of a new Super User season! Learn all about the new Super Users and brand-new tiered recognition system.

Super User Challenge: Can You Solve These?

Super User Challenge: Can You Solve These?

We're celebrating the start of the New Super User season with our first ever Super User 'Can You Solve These?' challenge.

Power BI Desktop Update - February 2020

Power BI Desktop Update - February 2020

We are super excited for our update this month, as we are releasing two of our top community requests!

Power Platform Online Conference

Power Platform Online Conference

Join us for the first ever Power Platform Online Conference!

Top Solution Authors