Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
naeljb
Helper I
Helper I

dax formula related table

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

1 ACCEPTED SOLUTION

Thank you Br Tamas.  very very helpfull !!!

View solution in original post

2 REPLIES 2
vesztamas
Frequent Visitor

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 !!!

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

Find out what's new and trending in the Fabric Community.