Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
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])))