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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
gritman
Frequent Visitor

DAX - Joining Tables and Measures

Hi Everyone, 

 

Earlier today I posted a query DAX - How to use a Column Value to use in a Measure and received a great solution from @parry2k.  I would appreciate help with the next step in my PowerBi report.

 

I now have a table2 with the below.  

Table.DateTable.SalespersonTable.$ AmountMeasure.TotalMeasure.Day %
1st FebBob200100020%
1st FebJessica200120017%
2nd FebBob300100030%
2nd FebJessica400120033%
3rd FebBob500100050%
3rd FebJessica600120050%

 

And another table with the below (I used a simular formula for the Total as per the above table).  I've joined the tables by a 'KeyTable' which has two entries - Bob and Jessica.

Table.DateTable.SalespersonTable.CostsMeasure.TotalCosts
1st FebBob2060
1st FebJessica3090
2nd FebBob2060
2nd FebJessica3090
3rd FebBob2060
3rd FebJessica3090

 

What I would like to do is link the two tables, by Salesperson, and multiply the Measure.Day% from the first table with Measure.Total in the second table, so I get the below.

 

Table.DateTable.SalespersonTable.$ AmountMeasure.TotalMeasure.Day %Table2.TotalCostsDay% x Total Costs (Help)
1st FebBob200100020%6012
1st FebJessica200120017%9015
2nd FebBob300100030%6018
2nd FebJessica400120033%9030
3rd FebBob500100050%6030
3rd FebJessica600120050%9045

 

At the moment I have the 'TotalCosts' coming back - but it's a sum of the Costs in Table2, rather then those Bob costs and Jessica costs

Table.DateTable.SalespersonTable.$ AmountMeasure.TotalMeasure.Day %Table2.TotalCostsDay% x Total Costs (Help)
1st FebBob200100020%15030
1st FebJessica200120017%15025
2nd FebBob300100030%15045
2nd FebJessica400120033%15050
3rd FebBob500100050%15075
3rd FebJessica600120050%15075

 

I've be grateful for advice anyone can offer.  Let me know if any more info or the queries I have so far would be useful.

 

Thanks

 

Andy

1 ACCEPTED SOLUTION
gritman
Frequent Visitor

I've managed to solve this one myself.  I changed the join type to be "Cross Filter Direction" = Both (instead of Single) and that gave me what I was looking for.

 

Thanks

View solution in original post

1 REPLY 1
gritman
Frequent Visitor

I've managed to solve this one myself.  I changed the join type to be "Cross Filter Direction" = Both (instead of Single) and that gave me what I was looking for.

 

Thanks

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 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.