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!Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.
Hello,
I have 3 tables :
- Period which is a set of dates, and monthes
- RequestsHours who has an active relationship with the period table base on the "date" field and another field "total"
- HoursDone who can only have an inactive relationship with the period table (on the "date" field") because it already has another active relationship with other tables linked to the Period table and a "total" field
I want to do a chart with a comparison of the RequestedHours (total) and HoursDone (total) for a particular Month based on a slicer on the month field.
The problem is my slicer only filters requested hours and not hours done. I tried several measures with "USERELATIONSHIP" with no success. Can somebody help me with this problem ? What is the real solution ?
Thank you in advance for your help.
Hello,
it's because I masked some tables from my diagram... (I have a lot of tables...) Here it is :
zigune
The problem is the Many-to-many bi-directional filter between the HoursDone table and the TP_projects table. The relationship between the period table and the Hours Done table cannot be active because it could create conflicting filtering as the filter propagates arpund the tables:
You can solve this by creating a bridge table with unique values for the Code Project field, and create single-to-many relationships allround:
Proud to be a Super User!
Paul on Linkedin.
Can you please provide sample data?
Proud to be a Super User!
Paul on Linkedin.
Hello,
thank you for your answer :
Here are sample data.
RequestsHours :
Date | Total |
01.02.2022 00:00 | 2 |
01.02.2022 00:00 | 1.35 |
02.02.2022 00:00 | 2 |
02.02.2022 00:00 | 1.35 |
03.02.2022 00:00 | 2 |
03.02.2022 00:00 | 1.35 |
04.02.2022 00:00 | 2 |
04.02.2022 00:00 | 1.35 |
07.02.2022 00:00 | 2 |
07.02.2022 00:00 | 1.35 |
08.02.2022 00:00 | 2 |
08.02.2022 00:00 | 1.35 |
09.02.2022 00:00 | 2 |
09.02.2022 00:00 | 1.35 |
10.02.2022 00:00 | 2 |
10.02.2022 00:00 | 1.35 |
11.02.2022 00:00 | 2 |
11.02.2022 00:00 | 1.35 |
HoursDone :
date | total |
03.01.2022 00:00 | 2.5 |
04.01.2022 00:00 | 4 |
05.01.2022 00:00 | 9 |
06.01.2022 00:00 | 11.5 |
07.01.2022 00:00 | 11 |
10.01.2022 00:00 | 2.5 |
11.01.2022 00:00 | 9.5 |
12.01.2022 00:00 | 2 |
13.01.2022 00:00 | 9 |
14.01.2022 00:00 | 7.5 |
17.01.2022 00:00 | 14.5 |
18.01.2022 00:00 | 6 |
19.01.2022 00:00 | 3 |
20.01.2022 00:00 | 13 |
21.01.2022 00:00 | 8 |
24.01.2022 00:00 | 12.25 |
25.01.2022 00:00 | 12.5 |
26.01.2022 00:00 | 7 |
27.01.2022 00:00 | 14 |
Period :
Date | Year-Month |
01.01.2022 00:00 | 2022-01 |
02.01.2022 00:00 | 2022-01 |
03.01.2022 00:00 | 2022-01 |
04.01.2022 00:00 | 2022-01 |
05.01.2022 00:00 | 2022-01 |
06.01.2022 00:00 | 2022-01 |
07.01.2022 00:00 | 2022-01 |
08.01.2022 00:00 | 2022-01 |
09.01.2022 00:00 | 2022-01 |
10.01.2022 00:00 | 2022-01 |
11.01.2022 00:00 | 2022-01 |
12.01.2022 00:00 | 2022-01 |
13.01.2022 00:00 | 2022-01 |
14.01.2022 00:00 | 2022-01 |
15.01.2022 00:00 | 2022-01 |
16.01.2022 00:00 | 2022-01 |
17.01.2022 00:00 | 2022-01 |
18.01.2022 00:00 | 2022-01 |
19.01.2022 00:00 | 2022-01 |
20.01.2022 00:00 | 2022-01 |
21.01.2022 00:00 | 2022-01 |
22.01.2022 00:00 | 2022-01 |
23.01.2022 00:00 | 2022-01 |
24.01.2022 00:00 | 2022-01 |
25.01.2022 00:00 | 2022-01 |
26.01.2022 00:00 | 2022-01 |
27.01.2022 00:00 | 2022-01 |
28.01.2022 00:00 | 2022-01 |
29.01.2022 00:00 | 2022-01 |
30.01.2022 00:00 | 2022-01 |
31.01.2022 00:00 | 2022-01 |
01.02.2022 00:00 | 2022-02 |
02.02.2022 00:00 | 2022-02 |
03.02.2022 00:00 | 2022-02 |
04.02.2022 00:00 | 2022-02 |
05.02.2022 00:00 | 2022-02 |
06.02.2022 00:00 | 2022-02 |
07.02.2022 00:00 | 2022-02 |
08.02.2022 00:00 | 2022-02 |
Best regards :
Thanks for the sample data. Ok, some questions:
-RequestsHours who has an active relationship with the period table base on the "date" field and another field "total"
-HoursDone who can only have an inactive relationship with the period table (on the "date" field") because it already has another active relationship with other tables linked to the Period table and a "total" field
Sorry, which relationship are these? They are not in the model you depicted.
BTW, when dealing with dates, it is better if you format all the date fields as "Date" (Not "Date/time")
This is the model I have so far:
Proud to be a Super User!
Paul on Linkedin.