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.
In the bottom visual below, you'll notice answers of "6", but I'm looking for an answer of "8". Below I describe the setup:
In my "Store" table, notice the empty values for Store Name
I am trying to count how many other stores there are when I look at one store name (middle visual). I'm trying to use the following measure:
Thanks!
Solved! Go to Solution.
@akarasick1 , do not use store name, Try to take store id and advantage of row context
calculate(count(Stores[Store_id]),filter(all(Stores), Stores[Store_id]<>max(Stores[Store_id])))
or
calculate(count(Stores[Store_id]),filter(all(Stores[Store_id]), Stores[Store_id]<>max(Stores[Store_id])))
@akarasick1 , do not use store name, Try to take store id and advantage of row context
calculate(count(Stores[Store_id]),filter(all(Stores), Stores[Store_id]<>max(Stores[Store_id])))
or
calculate(count(Stores[Store_id]),filter(all(Stores[Store_id]), Stores[Store_id]<>max(Stores[Store_id])))
User | Count |
---|---|
15 | |
13 | |
8 | |
6 | |
6 |
User | Count |
---|---|
27 | |
19 | |
12 | |
9 | |
5 |