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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
jelledaems
Frequent Visitor

List of all clients in client groups that contain at least 1 client that has had certain help

Dear community

 

I'm relatively new to DAX, so I'm still learning. I am trying to figure something out which is probably not difficult for you, but I've been searching and I have not found a solution yet.

 

A client belongs to a client group. And a client gets a certain type of help from the government. There are different types of help like: money, meals, house... 

 

My question: I would like to have a list of all clients that belong to a client group that contains at least 1 client that has gotten the type of help "Meals".

 

So if there is a client group that contains 4 persons, of which 1 person has gotten the type of help "Meals" and the other have gotten the type of help "Money", then I would still like to see all clients as at least 1 client in that client group has had "Meals".  

 

Thank you in advance

 

Kind regards

Jelle

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@jelledaems , Try measure like

 

Table[Sales new used] = "New"))

measure =
var _cnt = calculate(countrows(filter(Table, Table[Help type] = ""Meal)), allexcept(Table, Table[client group]))
return
calculate(count(Table[client]), filter(Table, not(isblank(_cnt))))

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

View solution in original post

2 REPLIES 2
jelledaems
Frequent Visitor

Thank you, @amitchandak This seems to do the trick. I'll analyze your solution now, so that I will also learn from it!

amitchandak
Super User
Super User

@jelledaems , Try measure like

 

Table[Sales new used] = "New"))

measure =
var _cnt = calculate(countrows(filter(Table, Table[Help type] = ""Meal)), allexcept(Table, Table[client group]))
return
calculate(count(Table[client]), filter(Table, not(isblank(_cnt))))

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.