Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi Expert,
I have bar chart with years as fitler, like below.
I want to add another "Selected Year" filter (based on which year I select from "Year" filter, single option) and sort bar chart in descending order based on this filter. E.g. I chose Y2022, 2023, 2024 in "Year" filter, same 3 Year will appear in "Selected Year" filter, if I chose selected by Y2023, then bar chart will sort by Y2023 in descending order, but other 2 years data need keep in visual.
Thanks a lot.
Solved! Go to Solution.
@TWMY1014 , The year needs to come from an independent date table, create a measure and add that to tool tip and use that for sorting
//Date1 is independent Date table, Date is joined with Table
new measure =
var _max = maxx(allselected(Date1),Date1[Year])
return
calculate( sum(Table[Value]), filter('Date', 'Date'[Year] =_max))
@TWMY1014 , The year needs to come from an independent date table, create a measure and add that to tool tip and use that for sorting
//Date1 is independent Date table, Date is joined with Table
new measure =
var _max = maxx(allselected(Date1),Date1[Year])
return
calculate( sum(Table[Value]), filter('Date', 'Date'[Year] =_max))
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
107 | |
100 | |
78 | |
64 | |
58 |
User | Count |
---|---|
148 | |
113 | |
97 | |
84 | |
67 |