Forum Discussion
Filter Table Visual by EndDate (Inactive Relationship)
- 11 months ago
Your Leavers measure works for totals but not row-level filters.
Fix: create a boolean flag measure using the inactive EndDate relationship, then filter the table visual on it:
ShowLeaver =
CALCULATE (
COUNTROWS ( Staff ),
USERELATIONSHIP ( Staff[EndDate], DateTable[Date] )
) > 0
Now in your table visual filter pane → set ShowLeaver = TRUE.
This way only staff with EndDate in the slicer period will appear.
- Zahur1 year agoRegular Visitor
Thank you Shahid12523 and FBergamaschi for your replies. I tried Shahid12523 measure but it did not work so I modified it to
mShowLeaver =IF(CALCULATE (COUNTROWS ( Staff ),USERELATIONSHIP (Staff[EndDate], DateTable[Date])) > 0,1,0)But that did not work either.Here is my latest pbix Example.pbix
- Rupak_bi11 months agoSuper User
- Shahid125231 year agoCommunity Champion
connect me on linkedin-https://www.linkedin.com/in/shahed-shaikh-4608a110b/
explain me on detaily so i can solve your problem- Zahur1 year agoRegular Visitor
Thank you Shahid12523 but I’d prefer to keep the discussion here so others can also benefit. The problem stated is really simple and I have provided a basic example pbix.
After spending many hours on this problem on forums and ChatGPT, I have decided to stick with the fudge fix of adding my original Leavers measure to the visual table as an invisible column.
Of course, I would welcome and appreciate anyone that is able to solve this very simple but frustating problem.