Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
54 | |
26 | |
23 | |
14 | |
11 |
User | Count |
---|---|
78 | |
63 | |
46 | |
17 | |
12 |