Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
Stefber
Frequent Visitor

Modeling Solution?

I have a data file that I need to be able to filter by Fiscal Year.  The information is sorted into columns like below.  Any suggestions?

 

IDCurrent FYPrior FYPrior FY  2Prior FY 3
1001 $              10.00 $    10.00 $     30.00 $       5.00
1002 $              20.00 $    10.00 $     10.00 $    10.00
1002 $              70.00 $    10.00  $    20.00
1 ACCEPTED SOLUTION

Hi @Stefber,

 

Thanks for the update. Glad to hear the unpivot tip helped and you were able to restructure your data! Just checking does this mean your issue is fully resolved?

 

Thanks & Regards,

Prasanna Kumar

View solution in original post

8 REPLIES 8
v-pgoloju
Community Support
Community Support

Hi @Stefber,

 

Just following up to see if the Response provided was helpful in resolving your issue. Please feel free to let us know if you need any further assistance.

 

Best regards,

Prasanna Kumar

v-pgoloju
Community Support
Community Support

Hi @Stefber,

 

Just following up to see if the Response provided by community members were helpful in addressing the issue.

If one of the responses helped resolve your query, please consider marking perticular response as the Accepted Solution. Feel free to reach out if you need any further clarification or assistance.

 

Best regards,
Prasanna Kumar

Prasanna Kumar, It was helpful thank you! It is a lage, flat data set that included many more comuns, so I separated it into three tables- not as elegant as I'd like, but the unpivot tip worked for what I needed. Thank you!

 

Hi @Stefber,

 

Thanks for the update. Glad to hear the unpivot tip helped and you were able to restructure your data! Just checking does this mean your issue is fully resolved?

 

Thanks & Regards,

Prasanna Kumar

v-pgoloju
Community Support
Community Support

Hi @Stefber,

 

Right now your data is spread across separate columns for each fiscal year, which makes filtering difficult. The solution is to reshape it into a better format using Power Query. Instead of having “Current FY,” “Prior FY,” etc. as separate columns, you unpivot them so they become values in a single column called Fiscal Year, with another column holding the corresponding Amount. Once you do this, you can place the Fiscal Year field in a slicer and it will filter your chart correctly, showing only the years you select. The key is to use the new unpivoted fields in your visuals, not the old wide format columns.

 

Thanks & Regards,
Prasanna Kumar

Shahid12523
Community Champion
Community Champion

- Use Power Query:
- Select the columns: Current FY, Prior FY, Prior FY 2, Prior FY 3
- Right-click → Unpivot Columns
- Rename the new columns to Fiscal Year Label and Amount


- Optional Enhancements:
- Add a calculated column to convert labels into actual fiscal years (e.g., if Current FY = 2025, Prior FY = 2024, etc.)
FY =
SWITCH(
[Fiscal Year Label],
"Current FY", 2025,
"Prior FY", 2024,
"Prior FY 2", 2023,
"Prior FY 3", 2022
)
- Create a slicer on FY or Fiscal Year Label

 

Shahed Shaikh

Thanks Shahed, This seems like it would work, but it doesn't filter the data the way I need it to. I tried duplicating those columns and unpivoting the copies, but the attribute slicer isn't filtering. I want to be able to filter for Current FY or Prior FY.  Any ideas?

Stefber_1-1756470142759.png

 

 

MasonMA
Resident Rockstar
Resident Rockstar

Hello @Stefber 

 

Not 100% sure about your request. Would 'Upvioting' give you the table format you want? 

If so, in your Power Query, right click 'ID column' and then click 'Unpivot Other Columns'. 

MasonMA_0-1756405226062.png

Rename 'Attribute' to Fiscal Year and i assume now you would be able to filter by fiscal year? 

MasonMA_1-1756405288788.png

 

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors
Top Kudoed Authors