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

 

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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.