Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi all,
I am trying to link data from two tables so that the date slicer will work with both. I am new to Power BI and tried a few solutions on the forums, but have not been able to resolve the issue. Here are my tables and some of the relevant columns:
I created a measure in my report to count the number of rows Table 2 with certain filters and used USERELATIONSHIP to activate the relationship between the DateTable and Table 2. However, the data shows up as Blank in the report. I played around with the relationships and got some numbers to show up, but when I use the date slicer or try to create a table visual with data from both Tables, it does not work properly. Here is how the relationships are set up:
Any help is appreciated!
Thank you.
Well, this is a classic of circular dependencies.
You are correcly using USERELATIONSHIP when calculating a value using an inactive relationship, so your value should be correct (at least in theory). Unless seeing the formula and the model, is hard to guess what coudl be wrong.
The other issue you're facing is that inactive relationship are not activated when using slicers. Slicers works only on active relationships (unless you use metrics that are calculated using the USERELATIONSHIP) so your table 2 on a normal visual will never be sliced by the date table. Wouldn't be better to inactivate one of the two on the right?
by the way, your pattern is also a different granularities, so this might help
https://www.daxpatterns.com/handling-different-granularities/
Thanks for the resources and information. I have been trying an alternative solution, but have hit a road block as well.
Essentially, I want a count of incidents where the "Near Miss" column is 0 from the Incident Master table and put the count into the row with the matching ProjectDescription and Date in the Lagging Indicator Report table.
I tried adding a column to the Lagging Indicator Report table with this function:
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
113 | |
97 | |
85 | |
70 | |
61 |
User | Count |
---|---|
151 | |
121 | |
104 | |
87 | |
67 |