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
nielfxrm
Frequent Visitor

USERELATIONSHIP to work with multiple dates

I have two tables:

 

  • Date
  • Opportunity

The Opportunity table contains many different date columns, including:

 

  • Close Date (active relationship)
  • Est. Order Date (inactive relationship)
  • Created Date (inactive relationship)

Now I want to use the inactive relationships, so I have created the DAX measures below:

 

Sales by Est. Order Date:

 

CALCULATE (
    SUM ( Opportunity[actualvalue_base] );
    USERELATIONSHIP (
        Opportunity[Est. Order Date];
        'Date'[Date]
        )
)

The DAX Measure above is working as supposed for the inactive relationship for Est. Order Date , and I get the result I expected:

 

Capture1.PNG

 

Now, when I try to use the Created Date column the same way - using the USERELATIONSHIP function as below it suddenly doesn't work. 

 

Sales Price by Created Date:

 

CALCULATE (
    SUM ( Opportunity[actualvalue_base] );
    USERELATIONSHIP (
        Opportunity[Created On];
        'Date'[Date]
        )
)

Capture2.PNG

 

Am I doing anything wrong or is this due to any limitations with the function? 

 

 

1 ACCEPTED SOLUTION
nielfxrm
Frequent Visitor

I can answer my own question. 

 

I had to transform the Created Date from Date/Time to Date. Now it works. Smiley Embarassed

View solution in original post

1 REPLY 1
nielfxrm
Frequent Visitor

I can answer my own question. 

 

I had to transform the Created Date from Date/Time to Date. Now it works. Smiley Embarassed

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.

Top Solution Authors
Top Kudoed Authors