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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
francisthe63
Helper I
Helper I

DAX : List of elements that have value

Hello, 

 

I have data like this

 

ID Status 

1 Accepted

2 Cancel

3 Accepted

4 Accepted

5 Cancel 

6 Cancel 

 

Do you know how it's possible, with a DAX measure, to have a list of all elements that have Status ? 

 

Like this 

 

Accepted Cancel 

1                 2

3                 5 

4                 6

 

Thank you in advance 

1 ACCEPTED SOLUTION
Ritaf1983
Super User
Super User

Hi @francisthe63 
You can use concantenateX function for the measures that should return lists

accepted = CALCULATE(CONCATENATEX('Table','Table'[ID],UNICHAR(10)),'Table'[Status]="Accepted")
cancel = CALCULATE(CONCATENATEX('Table','Table'[ID],UNICHAR(10)),'Table'[Status]="Cancel")
Result :
Ritaf1983_0-1713551033178.png

PBIX is attached

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly

 

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

View solution in original post

1 REPLY 1
Ritaf1983
Super User
Super User

Hi @francisthe63 
You can use concantenateX function for the measures that should return lists

accepted = CALCULATE(CONCATENATEX('Table','Table'[ID],UNICHAR(10)),'Table'[Status]="Accepted")
cancel = CALCULATE(CONCATENATEX('Table','Table'[ID],UNICHAR(10)),'Table'[Status]="Cancel")
Result :
Ritaf1983_0-1713551033178.png

PBIX is attached

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly

 

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

Helpful resources

Announcements
July 2024 Power BI Update

Power BI Monthly Update - July 2024

Check out the July 2024 Power BI update to learn about new features.

July Newsletter

Fabric Community Update - July 2024

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