Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
I've become stuck using USERELATIONSHIP for the first time and I don't understand where I need to plug this into my Dax formula.
I've watched several videos and read numerous posts and articles but still can't see what I'm doing wrong. I completely understand the concept of USERELATIONSHIP I just can't figure out the usage of it or where I'm going wrong.
Here is my original formula (The inactive relationship is created and an active relationship already exists. )
% of Total (AA) =
DIVIDE( [Total AA],
CALCULATE( [Total AA],
ALL( 'tbl_aa'[AA (Cleaned)] ) ),
BLANK() )
Here are my attempts at plugging USERELATIONSHIP into the above, none of which work.
% of Total (AA) =
DIVIDE( [Total AA],
CALCULATE( [Total AA],
ALL( 'tbl_aa'[AA (Cleaned)] ) ), USERELATIONSHIP('Calendar'[Date], tbl_mpl[last_closed_date])
BLANK() )
% of Total (AA) =
DIVIDE( [Total AA],
CALCULATE( [Total AA],
ALL( 'tbl_aa'[AA (Cleaned)] ) ),
BLANK()
USERELATIONSHIP('Calendar'[Date], tbl_mpl[last_closed_date]) )
% of Total (AA) =
CALCULATE(
DIVIDE( [Total AA],
CALCULATE( [Total AA],
ALL( 'tbl_aa'[AA (Cleaned)] ) ), USERELATIONSHIP('Calendar'[Date], tbl_mpl[last_closed_date])
BLANK() )
I would appreciate some help with this
Solved! Go to Solution.
USERELATIONSHIP is a filter modifier, you need put it into CALCULATE
USERELATIONSHIP is a filter modifier, you need put it into CALCULATE
I thought I had in my final attempt above but your comment made me look again and figured it out
% of Total (AA) =
DIVIDE( [Total AA],
CALCULATE( [Total AA],
ALL( 'tbl_aa'[AA (Cleaned)] ), USERELATIONSHIP('Calendar'[Date], tbl_mpl[last_closed_date]) ),
BLANK() )
Now my only problem is its not calculating the % correctly but thats a different issue. Thanks for your help
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
13 | |
12 | |
8 | |
7 | |
7 |
User | Count |
---|---|
20 | |
14 | |
11 | |
10 | |
10 |