cancel
Showing results for
Did you mean:

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

Helper I

## Finacial week Number

I am Working on Sales Report based on Financial Year, Yes I am using Separate Calendar Table which has Finacial year

Finacial Year - July 1st to June 30th

1) First week number of finacial year   Starts on first Wednesday of the year ,

Would be really helful if i get help with DAX

1 ACCEPTED SOLUTION
Super User

hi @heygau

try to add a column with this:

WeekNum2 =
VAR _value = WEEKNUM([Date]-2,2)-27
RETURN IF(_value>0, _value, _value+52)

i tried and it worked like this:

7 REPLIES 7
Helper I

@FreemanZ

In Our Business Every Wednesday we conduct Sale Week  That Starts First Wednesday of  Each Financial Year, Then Again Next Year also First wednesday of Next Financial Year Satrts Sale week 1.

So, Once this Financial Year Ends, From Next July First Wednesday it Should reset to Sale week 1

Super User

"July First Wednesday it Should reset to Sale week 1 ", i thought the solution covers that, or is there still something misconsidered?

Helper I

Beautiful, Its works Mate Thanks Well Done

Helper I

@FreemanZ  Thanks Man Much Appreciated

Super User

hi @heygau

try to add a column with this:

WeekNum2 =
VAR _value = WEEKNUM([Date]-2,2)-27
RETURN IF(_value>0, _value, _value+52)

i tried and it worked like this:

Helper I

@FreemanZ  Is it Possible it conteneous for next finacial Year,

Because 52nd week came back to first week of Year (Like Cycling)

Super User

you want the 1 in circle to be 53? like 52, 53, 54...?

Announcements

#### Fabric certifications survey

Certification feedback opportunity for the community.

#### Power BI Monthly Update - April 2024

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

#### Fabric Community Update - April 2024

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

Top Solution Authors
Top Kudoed Authors