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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
francisthe63
Regular Visitor

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

 

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

 

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.