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! Learn more
I have a spreadsheet with projects that have budgets over multiple years.
Example:
| Project Name | 2022 | 2023 | 2024 | 2025 |
| Project 1 | 10,000 | 15,000 | 10,000 | |
| Project 2 | 25,000 | 15,000 | 10,000 |
How can I create some buttons for the years i.e. 2022, 2023, etc. and when I click on a particular year button it will popultate the table with only the projects that have budget in that specific year?
Thanks for all your help!
Solved! Go to Solution.
@Anonymous , you can unpivot the columns in Power Query editor,
then year as a slicer,
Thanks,
Quick question on this. I added a new column to my data source. And when I add info into all the cells of the new column is it missing in the data model for a lot of them. Do I need to un-pivot and repivot with the new column added? How can the data in this new column to show up in all the cells of the data model?
I see Unpivoted Columns in the Applied Steps, but then what are you doing with the Renamed Columns? What columns are you renaming?? Is it the Attribute Column?
If you unpivot the columns "by default" column names will be
1. Attribute->Year
2. Value->Budget
I just renamed it to provide a meaningful name. So, it is easy for you to identify the column.
Thanks,
Thanks for all your help! I see if add rows into the souce data PBI just takes care of the entries for each year. Again thank you.
@Anonymous , you can unpivot the columns in Power Query editor,
then year as a slicer,
Thanks,
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 84 | |
| 49 | |
| 36 | |
| 31 | |
| 30 |