The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
Hello,
I have a report which brings data from tables merged together as 1 using INNER JOIN.
The main table is - SiteMembership
I need to Count the SiteMapId from SiteMembership where Group Id = 2
Query: SELECT COUNT (*) FROM dbo.SiteMembership WHERE GroupID = 2
DAX Written:
Solved! Go to Solution.
@amitchandak Thanks, I resolved it myself. The issue was that the bridge table for dynamic RLS was not created and hence it was directly applying the filters on the main table.
@amitchandak Thanks, I resolved it myself. The issue was that the bridge table for dynamic RLS was not created and hence it was directly applying the filters on the main table.
@Anonymous ,what should happen with RLS.
I think you should use a measure like
Client Count =
VAR V1 = CALCULATE(COUNT(SiteMembership[SiteMapID]),filter(SiteMembership, SiteMembership[GroupID]=2) )
User | Count |
---|---|
14 | |
12 | |
7 | |
6 | |
5 |
User | Count |
---|---|
28 | |
19 | |
13 | |
7 | |
5 |