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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

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
Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Jan NL Carousel

Fabric Community Update - January 2025

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