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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Help

Hi,

         I have a line chart. X axis is Order Date, Y axis is sales. I want to set a prameter which includes Fiscal Quaterly, Fiscal Monthly and Fiscal Weekly. When I selcet FQ, my line chart will show sales by FQ. When select FM, the line chart will show sales by FM, and so on. The solution in Tableau, I just need to create a Time parameter(FQ,FW,EW), and also a calculated field to pass values to the time parameter. How can I achive this in PowerBI?

        Thanks for help!

Jenny

1 ACCEPTED SOLUTION

Hi @Anonymous, 

 

The auto date hierarchy doesn't contain week hierarchy, we need to create a calculated column use WeekNUM() function to get week number. 

 

Assume fiscal year starts from February 1st, you can create columns below: 

 

Fiscal Year = IF(MONTH('Table1'[Order Date]) <=2,YEAR('Table1'[Order Date]),YEAR('Table1'[Order Date]) +1)

 

Fiscal Month = IF(MONTH('Table1'[Order Date])>=2,MONTH('Table1'[Order Date])-1,12)

 

Fiscal Week = VAR fw = [Week] - 5 + 1
RETURN IF( fw <= 0 , 52 + fw ,fw )

 

q2.PNG

 

Best Regards,
Qiuyun Yu 

Community Support Team _ Qiuyun Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

5 REPLIES 5
Anonymous
Not applicable

Hi Yu, 

         based on the sample report that you showed, how can I calculate fiscal Month, fiscal week etc for orderdate. Assum that fisal year start t Feb 1 of year. 

        Thanks!

Hi @Anonymous, 

 

The auto date hierarchy doesn't contain week hierarchy, we need to create a calculated column use WeekNUM() function to get week number. 

 

Assume fiscal year starts from February 1st, you can create columns below: 

 

Fiscal Year = IF(MONTH('Table1'[Order Date]) <=2,YEAR('Table1'[Order Date]),YEAR('Table1'[Order Date]) +1)

 

Fiscal Month = IF(MONTH('Table1'[Order Date])>=2,MONTH('Table1'[Order Date])-1,12)

 

Fiscal Week = VAR fw = [Week] - 5 + 1
RETURN IF( fw <= 0 , 52 + fw ,fw )

 

q2.PNG

 

Best Regards,
Qiuyun Yu 

Community Support Team _ Qiuyun Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Hi Yu,

         Very helpful, appreicate your help!!!

Jenny 

Anonymous
Not applicable

Hi Yu,

        Thank you very much for reply! When I plug in Survey Submit Day to axis, why 'week' doesn't show up. please see attched picture. I need week data, how can I let 'week' show up at axis. 

        Thanks!dateissue.PNG

v-qiuyu-msft
Community Support
Community Support

Hi @Anonymous, 

 

In Power BI, there is no exact very same feature. But there is a drill down feature for us to display sales in a chart on different level (quarter, month and week). You can create three calculated columns to return quarter, month and week values. The put these three columns in Axis bucket as well. For detail information, you can see the sample report. 

 

q1.PNGq2.PNG

Reference: 

https://docs.microsoft.com/en-us/power-bi/consumer/end-user-drill

 

Best Regards,
Qiuyun Yu 

Community Support Team _ Qiuyun Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors