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.
CALCULATE ( COUNTROWS('Qoutes'), RELATEDTABLE('Sales'), 'Sales'[GP] > 0, 'Sales'[customerid] IN VALUES('Qoutes'[customerid]), VALUES('Qoutes'[Month]), VALUES('Qoutes'[Day]) )
There are 15 customerids in the Sales Table in the given date range, but there are 10 customerids with Gp > 0. I want to count the values of these 10 customerids in my Qoutes table.
Solved! Go to Solution.
@atahancelik Sample data would help make this clearer. Put Month and Day into a visual as an adhoc hierarchy. Then maybe a measure like this:
Measure =
VAR __Customers = DISTINCT(SELECTCOLUMNS(FILTER('Sales', [GP] > 0), "__CustID", [customerid]))
VAR __Result = COUNTROWS(FILTER('Quotes', [customerid] IN __Customers))
RETURN
__Result
@atahancelik Sample data would help make this clearer. Put Month and Day into a visual as an adhoc hierarchy. Then maybe a measure like this:
Measure =
VAR __Customers = DISTINCT(SELECTCOLUMNS(FILTER('Sales', [GP] > 0), "__CustID", [customerid]))
VAR __Result = COUNTROWS(FILTER('Quotes', [customerid] IN __Customers))
RETURN
__Result
thank you
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.