Forum Discussion
Order By using number in concatenateX
- 6 years ago
Hi LPenatti
Add "Name" column from "latin map" table in the slicer, create a measure
Measure = CONCATENATEX(ALLSELECTED('Table'),'Table'[Name],",",'Table'[Pos])Best Regards
MaggieCommunity Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
LPenattiit might work
Measure =
CONCATENATEX('Table','Table'[Column1],",",RELATED(T2[Pos]))Sample data for the measure
| Column1 |
| Brazil |
| South |
| North |
| Brazil |
Table
| Column1 | Pos |
| North | 1 |
| Brazil | 2 |
| South | 3 |
T2
Hi smpa01, thank you for your reply!
Let's say it almost worked, but now it's showing repeated values:
I said it "almost worked" because it started with North, exactly the way I want.
The measure:
region_select =
//old
//VAR _Concat = CONCATENATEX(VALUES('Database'[Region]); 'Database'[Region]; ", ")
//new
VAR _Concat = CONCATENATEX('Database'; 'Database'[Region]; ", "; RELATED('Latin America Map'[Pos]))
RETURN _ConcatI tried to substitute the first argument on CONCATENATEX 'Database' by VALUES('Database'[Region]) but it doesn't work.
- v-juanli-msft7 years ago
Community Support
Hi LPenatti
What final result do you want?
If select map visual "north", the card visul should show "north",
If select map visual "south", the card visul should show "north, brazil,south", right?
Best Regards
MaggieCommunity Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.- LPenatti7 years ago
Helper II
Hi v-juanli-msft , thank you for your reply.
The result I need is the Card visual shows what's selected in Map Visual filter, in the following order: "North, Brazil, South" (if all regions are selected, of course).
- v-juanli-msft6 years ago
Community Support
Hi LPenatti
Add "Name" column from "latin map" table in the slicer, create a measure
Measure = CONCATENATEX(ALLSELECTED('Table'),'Table'[Name],",",'Table'[Pos])Best Regards
MaggieCommunity Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.