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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
rkumar
Helper III
Helper III

Creating a measure to select all values of a column

Hi All,

We have a requirement where we need to have the distinct values of a column in a measure , Can that be done in dax query  or some other way.

7 REPLIES 7
Stachu
Community Champion
Community Champion

you can use CONCATENATEX in DAX

Measure = CONCATENATEX(DISTINCT('Table'[Column]),'Table'[Column],",") 


Did I answer your question? Mark my post as a solution!
Thank you for the kudos 🙂

We just need distinct values of one column in measure, but measure dosent accepts column without any aggregate function or expression.
Thats the block.

 

Stachu
Community Champion
Community Champion

CONCATENATEX is aggregating the values from the column into string - have you tried the code I've sent?



Did I answer your question? Mark my post as a solution!
Thank you for the kudos 🙂

Yes, i tried.  But due to some reason in september update of PowerBI i am not able to see CONCATENATEX function while creating a measure . Tried same with earlier version of power BI and its working there.

While creating measure not able to see CONCATENATEX function.While creating measure not able to see CONCATENATEX function.

 

Thank You

@rkumar,

 

Make sure it is a measure, not calculated column.

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Stachu
Community Champion
Community Champion

from what I see in your screenshot tha Data View is missing as well, so maybe there is something wrong with your instalation - I use the latest version of PowerBI and CONCATENATEX is there

for the View issue you can try going pressing Home>Edit Queries
https://community.powerbi.com/t5/Desktop/No-Data-View-Option/td-p/18003

it solved the issue for some, maybe it will fix it for you as well



Did I answer your question? Mark my post as a solution!
Thank you for the kudos 🙂

Is dataview availabkle in direct query mode.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors