Link to home
Start Free TrialLog in
Avatar of gvamsimba
gvamsimbaFlag for United Kingdom of Great Britain and Northern Ireland

asked on

dax divide by number number of weeks left in the financial year

Hi I have a measure 1 . I need to create 2 measures with the below formula. our Financial year is April 1 - March 31st.

Measure 2 = MeasureA Divided by Number of weeks LEFT in the Financial year

Measure 3 = MeasureA Divided by Number of weeks FINISHED in the Financial year

can someone please give that Dax formula for me ?
Avatar of Tom Farrar
Tom Farrar
Flag of United States of America image

What if you start with a new column in your Date Table that shows the financial week of the year?  Something like:

WeekNumber = WEEKNUM(Dates[Date]-90,1)

Then I would think the rest is just a mathematic calculation.


Avatar of gvamsimba

ASKER

Hi Tom, do you think this might work without the need for touching the date table ? Thanks

Measure 2 = DIVIDE(MeasureA, 14 - WEEKNUM(TODAY()))
Measure 3 = DIVIDE(MeasureA, 52 - WEEKNUM((TODAY())) + 14)
ASKER CERTIFIED SOLUTION
Avatar of Tom Farrar
Tom Farrar
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial