Forum Discussion
Remove Duplicate Values using CONCATENATEX and Direct Query
- 2 years ago
Dangar332 I figured out the issue. It had something to do with the ordering of the relations to tables in the Model View - I shortened the path and it started working correctly using the following DAX:
List of BMP observations =VAR __DISTINCT_VALUES_COUNT = DISTINCTCOUNT(FindingsFacilityVisualList[bmpObs])RETURNCONCATENATEX(DISTINCT(FILTER(FindingsFacilityVisualList,FindingsFacilityVisualList[bmpObs] <> BLANK())),FindingsFacilityVisualList[bmpObs],", ")
Hi, HoppeG76
try below measure
just adjust your table and column name
i am taking some different but end goal is same as you want
Measure 4 =
CONCATENATEX(
FILTER(
ALL('Table (5)'[Column1]),
'Table (5)'[Column1]<>BLANK()
),
'Table (5)'[Column1], ", "
)
Dangar332 Thank you for your response, unfortunately this provides the same result as the third method in my post.
- Dangar3322 years agoResident Rockstar
Hi, HoppeG76
pleae check below pbix. file with your output
click HEREif it not help then provide sample file with removing of sensitive data
- HoppeG762 years agoRegular Visitor
Dangar332 Because this a Direct Query, I don't know how I would provide a sample to you, unfortunately. Thank you for your assistance.
- Dangar3322 years agoResident Rockstar
hi, HoppeG76
this function not support with direct queryThis function is not supported for use in DirectQuery mode when used in calculated columns or row-level security (RLS) rules.
try to use in measure form
check official site of microsoft HEREand check this HERE
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.