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
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 }
}
)
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
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 }
}
)
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
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 |
---|---|
143 | |
85 | |
66 | |
51 | |
45 |
User | Count |
---|---|
216 | |
89 | |
82 | |
66 | |
57 |