Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Dear All,
I have an issue with the USERELATIONSHIP dax function, I have a blank result when I use it on my measures :
First of all this is my schema :
Then this is my measures :
AmountTotal_1 = CALCULATE(SUM ( Table1[amt] );DATESINPERIOD ( Date[Date]; MAX ( Date[Date] ); 10; YEAR );
USERELATIONSHIP ( Table1[ID]; Table2[ID] )
)
AmountTotal_2 = CALCULATE(SUM ( Table1[amt] );DATESINPERIOD ( Date[Date]; MAX ( Date[Date] ); 10; YEAR )
)
AmountTotal_3 = CALCULATE(SUM ( Table2[amount] );DATESINPERIOD ( Date[Date]; MAX ( Date[Date] ); 10; YEAR );
USERELATIONSHIP ( Table1[ID]; Table2[ID] )
This is the result :
what looks strange is when I am using the same Measure with Table 2, it's working (AmountTotal_3)
Is there any problem with the granularity?
Is there any Function to add to avoid this?
Any Help please?
Hi @Anonymous
It might be to do with the decision that the engine has to make to switch off one of the relationships with Date table, try this.
AmountTotal_1 =
CALCULATE (
SUM ( Table1[amt] );
DATESINPERIOD ( Date[Date]; MAX ( Date[Date] ); 10; YEAR );
USERELATIONSHIP ( Table1[ID]; Table2[ID] );
CROSSFILTER( Table1[Date]; Date[Date]; none )
-- or CROSSFILTER( Table2[Date]; Date[Date]; none )
)
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 38 | |
| 36 | |
| 33 | |
| 33 | |
| 29 |
| User | Count |
|---|---|
| 134 | |
| 96 | |
| 78 | |
| 67 | |
| 65 |