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.
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.
Solved! Go to 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] ) )
Best regards,
Yuliana Gu
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
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] ) )
Best regards,
Yuliana Gu
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.
Hello @v-yulgu-msft
I have created a column to subtract min fiscal date from today but not getting the desired result -
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
110 | |
96 | |
77 | |
63 | |
55 |
User | Count |
---|---|
143 | |
109 | |
89 | |
84 | |
66 |