The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hello,
I have a slicer with the following values:
<60
61-120
121-200
201-300
>300
in my table i have a sorting table which sorts the values in this way.
I want to show the selected values into a card to make it easy for the customer to see what is selected. (I made a collapsible menu (with bookmarks) so the filter is not always visible)
The DAX itself works fine except the order of the values is incorrect.
here's the DAX:
result:
so the order is way off here..
anyone has an idea to get the order the same way as in the slicer?
Solved! Go to Solution.
Hi @Karola
Please try
RETURN
"Lactation stage: "
& CONCATENATEX (
SUMMARIZE (
'Table1 Dim_LactationDay',
'Table1 Dim_LactationDay'[Category],
'Table1 Dim_LactationDay'[Sort]
),
'Table1 Dim_LactationDay'[Category],
" & ",
'Table1 Dim_LactationDay'[Sort], ASC
)
Nice! that will do the trick
Thank you for your fast response and solution
Hi @Karola
Please try
RETURN
"Lactation stage: "
& CONCATENATEX (
SUMMARIZE (
'Table1 Dim_LactationDay',
'Table1 Dim_LactationDay'[Category],
'Table1 Dim_LactationDay'[Sort]
),
'Table1 Dim_LactationDay'[Category],
" & ",
'Table1 Dim_LactationDay'[Sort], ASC
)
User | Count |
---|---|
13 | |
8 | |
6 | |
6 | |
5 |
User | Count |
---|---|
24 | |
14 | |
13 | |
8 | |
8 |