Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hi everyone!
I have a chiclet slicer and a card visulization. The card shows what's selected on chiclet slicer (picture 1)
To do it I used the following function as a measure:
Region_selection = VAR iCount = COUNTROWS(VALUES(Database[Region])) VAR Region = CONCATENATEX(VALUES(Database[Region]); [Region]; ", ") RETURN Region
The table for chiclet slicer and relationship are shown below
In my table the order is North, Brazil and South.
I need the same order in the card when regions are selected, but I cannot order by the column "Pos" in concatenateX.
Is it possible to order it the way I need?
Thank you
Solved! Go to Solution.
Hi @LPenatti
Add "Name" column from "latin map" table in the slicer, create a measure
Measure = CONCATENATEX(ALLSELECTED('Table'),'Table'[Name],",",'Table'[Pos])
@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 _Concat
I tried to substitute the first argument on CONCATENATEX 'Database' by VALUES('Database'[Region]) but it doesn't work.
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?
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).
Hi @LPenatti
Add "Name" column from "latin map" table in the slicer, create a measure
Measure = CONCATENATEX(ALLSELECTED('Table'),'Table'[Name],",",'Table'[Pos])
Hi @v-juanli-msft, thank you for your response.
It worked like a charm!!! TYVM!
I just added a Calculate function to get only countries with region <> "" because there are some countries with this field in blank in the system...
Hi @LPenatti,
I am not able to recreate this. Have you made sure that 'Latin America Map'[Name] is sorted by 'Latin America Map'[Pos]?
cheers,
S
Hi @sturlaws, thanks for your reply.
I forgot to mention it, but yes, 'Latin America Map'[Name] was already sort by 'Latin America Map'[Pos]
and you used the Sort by column-function to do this?
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
145 | |
85 | |
66 | |
52 | |
48 |
User | Count |
---|---|
215 | |
90 | |
83 | |
67 | |
59 |