Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi
I have a slicer that selects which data series to plot. The order of the data series in the slicer is not in an order I like:
It should read Relative 20 then Relative 50 then Relative 100. Here is the measure:
Relative Data Selector =
DATATABLE(
"DataSource", STRING,
{
{"Relative 20"},
{"Relative 50"},
{"Relative 100"}
}
)
The order in the measure is correct but the slicer is sorting it in a way I don't like. Is there a way for the slicer to follow the order I am looking for?
Thank you
Solved! Go to Solution.
Hi,
One of ways is to create a sort column, something like below, and then select the DataSource column, and sort it by the sort-column.
Please check the below picture and the attached pbix file.
DATATABLE function - DAX | Microsoft Learn
Relative Data Selector =
DATATABLE (
"DataSource", STRING,
"Sort", INTEGER,
{
{ "Relative 20", 1 },
{ "Relative 50", 2 },
{ "Relative 100", 3 }
}
)
Hi,
One of ways is to create a sort column, something like below, and then select the DataSource column, and sort it by the sort-column.
Please check the below picture and the attached pbix file.
DATATABLE function - DAX | Microsoft Learn
Relative Data Selector =
DATATABLE (
"DataSource", STRING,
"Sort", INTEGER,
{
{ "Relative 20", 1 },
{ "Relative 50", 2 },
{ "Relative 100", 3 }
}
)
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 98 | |
| 72 | |
| 50 | |
| 49 | |
| 42 |