Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
I have two tables:
account_users and accounts_user_tags
connected with account_users.id = accounts_user_tags.user_id
Need a measure to calculate the extra id's present in account_users table but are not present in accounts_user_tags
I tried something like:
user_count = CALCULATE(
COUNT(
'public accounts_user'[id]
);
FILTER('public accounts_user_tags';'public accounts_user_tags'[user_id])
)
but, I guess it's not correct.
Anyone could guide me here.
Solved! Go to Solution.
Hi @Anonymous,
If I understand you correctly, the formula below should work in your scenario?
user_count = COUNTROWS ( FILTER ( 'public accounts_user'; CONTAINS ( 'public accounts_user_tags'; 'public accounts_user_tags'[user_id]; 'public accounts_user'[id] ) = FALSE () ) )
Regards
Hi @Anonymous,
If I understand you correctly, the formula below should work in your scenario?
user_count = COUNTROWS ( FILTER ( 'public accounts_user'; CONTAINS ( 'public accounts_user_tags'; 'public accounts_user_tags'[user_id]; 'public accounts_user'[id] ) = FALSE () ) )
Regards
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
124 | |
79 | |
50 | |
38 | |
38 |
User | Count |
---|---|
196 | |
80 | |
70 | |
51 | |
42 |