Forum Discussion
Anonymous
2 years agoNot applicable
RLS And USERELATIONSHIP
Hello Everyone. I have this Relationship between two tables: I created those measures: It works Perfect but when i Implement RLS Role i get this Error: I...
- Anonymous2 years ago
HI Anonymous,
I mean you can extract the corresponding item list from the target table without active fact relationship. Then you can use this list as condition in your Dax expression to filter calculation records.
formula = VAR IDlist = CALCULATETABLE ( VALUES ( 'DWH Dim_Neighborhoods'[NeighborhoodID] ), ALLSELECTED ( 'DWH Dim_Neighborhoods' ), VALUES ( 'DWH Dim_Neighborhoods'[NeighberhoodNameHEB] ) ) RETURN CALCULATE ( SUM ( 'DWH Fact_ImigrationInCity'[Quantity] ), FILTER ( ALLSELECTED ( 'DWH Fact_ImigrationInCity' ), 'DWH Fact_ImigrationInCity'[NeigheberhoodTargetID] IN IDlist ) )Regards,
Xiaoxin Sheng
- Anonymous2 years ago
Thank you!
formula =VAR IDlist =CALCULATETABLE (VALUES ( 'DWH Dim_Neighborhoods'[NeighborhoodID] ),ALL ( 'DWH Dim_Neighborhoods'[NeighberhoodNameENG] ))RETURNCALCULATE (SUM ( 'DWH Fact_ImigrationInCity'[Quantity] ),FILTER (ALLEXCEPT( 'DWH Fact_ImigrationInCity','DWH Dim_Date'),'DWH Fact_ImigrationInCity'[NeigheberhoodTargetID] IN IDlist))I made some changes and now it work, Thanks again!!
Villezekeviking
2 years agoMost Valuable Professional
An alternative solution can be found here.
https://www.villezekeviking.com/alternative-to-userelationship/