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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
phaum1967
Resolver I
Resolver I

Calculation between two tables without simple links

Hi Everyone,

I m trying to calculate revenues for each employees with two tables:

 

First one is Invoices with ClientID, Qty, UnitPrice, totalAmount (but I've no info about people and more tha one employee can be billed on the same invoice and many time we offer hours or discounts)

 

Second one is timetracking with

ClientID, Qty of hours , PriceRate (which is sometimes not the same as in Invoice as we can discount it).

 

My idea was to count (for each of the two tables) quantity by UnitPrice for each client. 

Then i can calculate breakdown of PriceRate for timetracking and link it to Invoice in order to dispatch revenues(TotalAmount) for each employee

 

Is it possible to do so in PB?

 

thanks for helping

2 REPLIES 2
v-sihou-msft
Microsoft Employee
Microsoft Employee

@phaum1967

 

Is the "Qty" in invoice table same as the "Qty of hours" in second table?

 

As you said you can offer hours for many times for one client, how did you map different unit prices into second table? I assume you suppose to have task/event id columns in both tables?

 

Can you share some sample data?

Hi,

Yes Qty tracked are hours in both cases but there are diffrent as in one I track all times and in the second, I invoice a part of hours (some hours are offered).

No I ve no task or event id in the two tables. My only relation possible is ClientID.

Sorry I can t share because there is confidential infos.

 

thanks for help....

 

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

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!

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.