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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
jpt1228
Responsive Resident
Responsive Resident

% of time elapsed in custom 4 week fiscal period

Hello, I have a data model I want to create a visual for % of period elapsed. I have a DImDate table with standard Date, Week, Fiscal week, Is Current Day - True/False, Is Current Fiscal Period - True/Flase etc.

 

I want to calculate the % of the fiscal period that has elapsed.

 

for Example:

 

Day 1 of fiscal period would be 1/28= .0357

Day 5 of fiscal period would be 5/28= .1786

Day 14 of fiscal period would be 14/28= .500

 

All the calculations would reset every new fiscal period to represent the % of fiscal period that has elapsed as of current date.

 

DimDate.JPG

1 ACCEPTED SOLUTION

Hi @jpt1228 ,

 

Please refer to below calculated columns.

Fiscal period =
VAR index =
    RANKX ( 'Table', [Date],, ASC, DENSE )
RETURN
    INT ( DIVIDE ( index - 1, 28 ) )

first day per period =
CALCULATE ( MIN ( [Date] ), ALLEXCEPT ( 'Table', 'Table'[Fiscal period] ) )

1.png

 

Best regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
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

Calculate the day differecne between start date for fiscal period and current date. and then divide it by the total number of days in fiscal period.
for example:
Current date: 13 - May - 2019
Fiscal period start date: 01 - April - 2019
you can use measure like following
                            datediff(Fiscal Period Start date, Current date,day) / total days in fiscal period 

 

jpt1228
Responsive Resident
Responsive Resident

Hello @Anonymous  that makes sense - I have a column for is current fiscal period True/False. What is the formula to get the beginning date for the current fiscal period?

 

Thanks

Hi @jpt1228 ,

 

Please refer to below calculated columns.

Fiscal period =
VAR index =
    RANKX ( 'Table', [Date],, ASC, DENSE )
RETURN
    INT ( DIVIDE ( index - 1, 28 ) )

first day per period =
CALCULATE ( MIN ( [Date] ), ALLEXCEPT ( 'Table', 'Table'[Fiscal period] ) )

1.png

 

Best regards,

Yuliana Gu

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

Hello @v-yulgu-msft The fiscal period start date does not return the result with the current year. It is the start of the fiscal period from 2014 not 2019.

date table fiscal.JPG

Hello @v-yulgu-msft 

 

I have created a column to subtract min fiscal date from today but not getting the desired result - 

 

Elapsed Time Fiscal.JPG

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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