How to modify slicers in Excel, Power Query

mareksade

New Member
Joined
Dec 11, 2023
Messages
3
Office Version
  1. 365
Platform
  1. Windows
  2. Web
I want to modify slicers in Excel, using Power Query, so that:The slicer is based on the Year column of a Calendar table.The slicer contains options for the years 2020, 2021, 2023, and 2024.I want to change the slicer so that when I select a year from it, all previous years are always active for that year. For example, if I select the year 2022, the options should include 2020, 2021, and 2022. If I select the year 2021, the options should include 2020 and 2021. If I select the year 2024, the options should include 2020, 2021, 2022, 2023, and 2024.How can this be done in Power Query?
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
You do not use slicers in PQ, however, to achieve the same results, you need to build parameter queries. Here is a Mr E video on how to build and use parameter queries.
 
Upvote 0
I found the solution myself on a YouTube channel. Thank you :)
YouTube is here -
 
Upvote 0
That is a power bi solution. You asked for a Power Query solution. They are not the same.
 
Upvote 0

Forum statistics

Threads
1,215,429
Messages
6,124,839
Members
449,193
Latest member
MikeVol

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top