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!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
Hello,
I want to ask how do I calculate Stores below. I want it has its own value when I expand to the next level (the manager name)
This is the measure I used :
AM_STORE_COUNT3 =
CALCULATE(
DISTINCTCOUNT(CUST_UNI[LEGAL_NAME]),
CUST_UNI[BANNER_NAME] = SELECTEDVALUE(IRI_STORE_COMBINED[BANNER_NAME]
))
Notes: LEGAL_NAME is the store name
Thank you !
Solved! Go to Solution.
@Anonymous , Your formula seem fine to me, you can use removefilters
AM_STORE_COUNT3 =
CALCULATE(
DISTINCTCOUNT(CUST_UNI[LEGAL_NAME]),
removefilters(CUST_UNI[BANNER_NAME])
))
or
AM_STORE_COUNT3 =
CALCULATE(
DISTINCTCOUNT(CUST_UNI[LEGAL_NAME]),
filter(allselected(CUST_UNI) , CUST_UNI[BANNER_NAME] = max(CUST_UNI[BANNER_NAME])
))
Hi @Anonymous
It seems that you are using disconnected tables...
if the tables are with relationships the measure should be just :
DISTINCTCOUNT(CUST_UNI[LEGAL_NAME])
if not you can try something like :
if (CUST_UNI[BANNER_NAME] = max(IRI_STORE_COMBINED[BANNER_NAME],
DISTINCTCOUNT(CUST_UNI[LEGAL_NAME]),"")
for more detailed and accurate suggestion
Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).
https://community.powerbi.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-...
Please show the expected outcome based on the sample data you provided.
https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523
If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly
Hi @Anonymous
It seems that you are using disconnected tables...
if the tables are with relationships the measure should be just :
DISTINCTCOUNT(CUST_UNI[LEGAL_NAME])
if not you can try something like :
if (CUST_UNI[BANNER_NAME] = max(IRI_STORE_COMBINED[BANNER_NAME],
DISTINCTCOUNT(CUST_UNI[LEGAL_NAME]),"")
for more detailed and accurate suggestion
Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).
https://community.powerbi.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-...
Please show the expected outcome based on the sample data you provided.
https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523
If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly
@Anonymous , Your formula seem fine to me, you can use removefilters
AM_STORE_COUNT3 =
CALCULATE(
DISTINCTCOUNT(CUST_UNI[LEGAL_NAME]),
removefilters(CUST_UNI[BANNER_NAME])
))
or
AM_STORE_COUNT3 =
CALCULATE(
DISTINCTCOUNT(CUST_UNI[LEGAL_NAME]),
filter(allselected(CUST_UNI) , CUST_UNI[BANNER_NAME] = max(CUST_UNI[BANNER_NAME])
))
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.