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.
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 !!!
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 |
---|---|
114 | |
99 | |
83 | |
70 | |
60 |
User | Count |
---|---|
150 | |
115 | |
104 | |
89 | |
65 |