The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
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
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
User | Count |
---|---|
109 | |
78 | |
70 | |
52 | |
50 |
User | Count |
---|---|
120 | |
120 | |
76 | |
62 | |
61 |