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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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