March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
In my Test Table, I have column SearchShelfTerm which can contain up 3 distinct values based on my ranking measure.
I need to create an additonal column which concatenates all the 1-3 values in the SearchShelfTerm column.
I have additonal columns which indicate true/false for the term being ranked in the appropriate column group.
End result should be another column showing the following in each cell of each row:
cold brew coffee, cold coffee, starbucks doubleshot
See image below of current state:
End Result:
Solved! Go to Solution.
I needed to concantenate only the values in the top 3 using my rank measure.
I figured out a solution to this.
Solution in the image below:
Hi, @mpicca13
According to your description, I guess you want to Concatenate all the [SearchShellTerm] grouped by [Product Name], you can try this calculated column:
Concatenated value =
var _first=CALCULATE(MAX('Table'[SearchShellTerm]),FILTER('Table',[Product Name]=EARLIER([Product Name])&&[First place]=TRUE()))
var _second=CALCULATE(MAX('Table'[SearchShellTerm]),FILTER('Table',[Product Name]=EARLIER([Product Name])&&[Second place]=TRUE()))
var _third=CALCULATE(MAX('Table'[SearchShellTerm]),FILTER('Table',[Product Name]=EARLIER([Product Name])&&[Third place]=TRUE()))
return COMBINEVALUES(" , ",_first,_second,_third)
And you can get what you want, like this:
You can download my test pbix file here
If this result is not what you want, you can post some sample data(without sensitive data) and your expected result.
How to Get Your Question Answered Quickly
Best Regards,
Community Support Team _Robert Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
I needed to concantenate only the values in the top 3 using my rank measure.
I figured out a solution to this.
Solution in the image below:
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
124 | |
89 | |
84 | |
70 | |
51 |
User | Count |
---|---|
206 | |
143 | |
97 | |
79 | |
68 |