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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Anonymous
Not applicable

Convert Fiscal Year, Quarter, Week from String to Date Format

Is there a way where I can easily convert my fiscal year, quarter, week columns with string values into a date format? Im trying to achieve this Create a relative date slicer or filter in Power BI - Power BI | Microsoft Learn

 

Table below show the example valeus of what my columns look like

FiscalYearFiscalQuarterFiscalWeekQuarterWork Week
202032021_3620Q3W36
202212022_0122Q1W01
202342023_5123Q4W51

 

1 ACCEPTED SOLUTION
6 REPLIES 6
Ahmedx
Super User
Super User
Ahmedx
Super User
Super User

Screen Capture #734.png

Ahmedx
Super User
Super User

Is this what you are looking for?

Screen Capture #732.png

Anonymous
Not applicable

This is exactly it. How can i achieve that?

Ahmedx
Super User
Super User

do you have a calendar?

one more question, what month does the calendar year start from?

Anonymous
Not applicable

I do have a calendar made by @KNP in Solved: Creating a Fiscal Calendar with 52 Weeks - Microsoft Power BI Community. However, his power query code needs to be adjusted such as inputting the years with 53 weeks in a Fiscal Calendar. I want a calendar that can automatically detect years with 53 weeks (e.g. 2007, 2012, 2018) so I thought of just converting my data into a date format rather than creating a new calendar.

Helpful resources

Announcements
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.