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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
anands06
Frequent Visitor

Create Pivot and DAX measure to link columns and measures in 2 tables

Dear experts and friends, I need help with below, if you can advise what is the best approach to link the tables / measure. Idea is to leverage the measure already created in table 1 and use a common shipment ID as a link.

Goal - To link measure (fx) of Events_Table1 with measure (fx) of Count_Invoice_ID in Invoice table2

Issue - Unable to link the measures of the tables and unable link measure in table 1 with invoice table 2 columns

Help needed _ Please find below details, hope I am able to explain what is needed by using below data model and table details.

Let me know if you need more information. Regards

Events_Table1Invoice_Table2Comments
Unique Shipment_ID (Primary Key)Shipment_IDDuplicate Shipment_ID in table2
OriginUnique Invoice_IDMultiple Invoice ID for same Shipment_ID
DestinationOrigin 
Truck Arrival time stampDestination 
Truck Depart time stampTruck Arrival time stamp 
Measure(fx)-Count_of Truck arrival time stampTruck Depart time stamp 
Measure (fx)-Count_ Truck Depart time stampMeasure (fx)- Count_Invoice_ID 

 

anands06_1-1690456944351.png

 
 

 

 

anands06_5-1690457209482.png

 

 

 

 

1 REPLY 1
some_bih
Super User
Super User

Hi @anands06 from picture I see your table are connected via inactive relationship.

To get measure working for this scenario in DAX you need your measure to use function USERELATIONSHIP, pattern  as below

UsingUseRel=
CALCULATE (
[<your measure],
USERELATIONSHIP ( Table1[ColumnNameX], Table1[ColumnNameX]] )
)

 

Did I answer your question? Mark my post as a solution! Kudos Appreciated!





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!






Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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