Forum Discussion
lfrigione
4 years agoHelper II
PowerBI relations
Hi, I have three tables: Facility(FacilityId, FacilityName, ...) AgeRange(AgeRangeId, minAge, maxAge, FacilityId, ...) ClientPeriod(ClientId, From, To, AgerangeId, FacilityId, ...) I have two ac...
- Anonymous4 years ago
HI lfrigione,
It seems like userelationship and RLS conflicts with the real and virtual relationship mappings.
Have you try to removing the virtual relationship and manually using the DAX expression to apply a filter in your calculations?Test = VAR inativeFilter = VALUES ( AgeRange[AgeRangeId] ) RETURN CALCULATE ( COUNTROWS ( ClientPeriod ), FILTER ( ALLSELECTED ( ClientPeriod ), [AgeRangeId] IN inativeFilter ) )Regards,
Xiaoxin Sheng
amitchandak
4 years agoSuper User
lfrigione , Facility should not join with AgeRange, it should only join with ClientPeriod,
if need have one inactive join when needed
lfrigione
4 years agoHelper II
Hi amitchandak ,
thank you for replying.
I need this relation because evey Facility has it's own age ranges.
When one account log in I would like to use RLS to filter this content.