Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
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
User | Count |
---|---|
50 | |
25 | |
18 | |
17 | |
14 |
User | Count |
---|---|
91 | |
86 | |
39 | |
25 | |
21 |