Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
I have the two following tables (Provider and Client) linked by an ID. In table Provider, how can I get the returned value (# client) for each provider? What would be the DAX FUNCTION to get this value in ‘’# client’’ column ? For example, for the first provider, the returned number of clients is 2 and for the second provider the number of client would 3
Provider
Id_provider | office_provider | Name | # client |
1 | West | Mark | 2 |
2 | East | Paul | ? |
3 | North | Jhone | ? |
Client
Id_provider | Client_name | Sex | $Paid |
1 | Jules | Male | 12 |
1 | Mark | Female | 45 |
2 | Evense | Male | 78 |
2 | Julile | Male | 56 |
2 | Pastor | Female | 23 |
3 | Mist | Female | 56 |
thank you for you help
Solved! Go to Solution.
Dear naeljb,
try this as new column:
client_number = CALCULATE(COUNTAx(Client;GROUPBY(Client;Client[id_provider])))
br, Tamas
Thank you Br Tamas. very very helpfull !!!
User | Count |
---|---|
140 | |
113 | |
104 | |
77 | |
65 |
User | Count |
---|---|
135 | |
116 | |
101 | |
71 | |
61 |