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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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