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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Nurry90
Helper I
Helper I

Fiscal week on non-standard date table

Hi All,

 

I am working with a non-standard date table in Power BI. Usually our fiscal year is July to June, but sometimes week 1 of the fiscal year actually starts in June.

 

When doing my calculations at the minute, all sales for week 1 are comeing into June sales, which is not accurate when it comes to June sales.  I want week 1 (when in June, month 6) to fall into sales in July. 

 

I have tried to work with my m code in the advanced editor, on the date table to manipulate, if wk1 and month = June(month 6), then override to =July(or month 7), else June. But this is giving me 2x July months in my month list.

 

Does anyone have any suggestions? Mcode manipulation was the 1st thing I thought of, but happy if there is a DAX caculation too.

 

Thanks,

Noelle.

4 REPLIES 4
amitchandak
Super User
Super User
wdx223_Daniel
Super User
Super User

it's maybe better to provide your sample data and the calculation logic.

Hi @wdx223_Daniel ,

 

It won't let me load my sample pbix file. Sorry I am new here, what should I do? I have attached a screenshot of what my data is showing.

 

 

 
 

 

Nurry90_0-1604021002268.png

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors