March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hi,
I have a DateTable and InfoTable (example below) where the 2 have an active relationship on StartDate and an inactive relationshiop on EndDate.
ID | StartDate | EndDate | Type |
User1 | 2022-01-01 | 2022-01-01 | a |
User2 | 2022-01-01 | 2022-01-05 | b |
User3 | 2022-01-01 | 2022-01-05 | c |
User4 | 2022-01-05 | 2022-01-04 | a |
User5 | 2022-01-05 | 2022-01-07 | b |
I'd like to have a simple table visualization which interacts with a slicer. The slicer is coming from the Date table but using the inactive relationship of the DateTable.
I'm already using USERELATIONSHIP where possible, but I cannot get my head around in case of the ID column, where I'd like to return all the values with said criteria without any aggregation.
For example:
If I select 2022-01-05 on the slicer I'd like to see only User2 & User3 in my visual and not User4 or User5.
Is there a way to achieve this without duplicating the date table (which I would try to avoid) or making the active relationship inactive too (which I would also try to avoid) .
Thanks in advance!
Solved! Go to Solution.
@Anonymous , Create a measure,
Count of Id = Calculate(COUNT(Table[Id]), USERLATIONSHIP(Date[Date], Table[EndDate]))
Add this measure as a visual level filter in the table visual and Apply Count of Id >= 1.
Thanks @SivaMani ,
I've tried this previously and the issue is that it only returns one small part of the data and not all the rows. Any idea why?
thanks
@Anonymous,
If I select 2022-01-05 on the slicer I'd like to see only User2 & User3 in my visual and not User4 or User5.
The proposed approach will meet the above requirement. Verify the other filters and make sure no conflicts.
You are right, it had a conflict with another filter. Thanks agani!
@Anonymous , Create a measure,
Count of Id = Calculate(COUNT(Table[Id]), USERLATIONSHIP(Date[Date], Table[EndDate]))
Add this measure as a visual level filter in the table visual and Apply Count of Id >= 1.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
133 | |
91 | |
88 | |
64 | |
58 |
User | Count |
---|---|
201 | |
137 | |
107 | |
73 | |
68 |