Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and a 50 percent discount on exams.
Get startedEarn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Hi all,
I try to get the measure to calculate total days in a financial year.
I want the final output to show 365 days for 2021/2022. Even if i want to show my data by month, i also want it to show 365 days.
I have a date table and calculated financial year columns if that help.
Thank you
Regards,
Vince
Solved! Go to Solution.
Hi @vincenttys ,
Do you have a [financial year] column in your date table? If there is, you can try this measure.
Count of days =
CALCULATE (
COUNT ( 'Date'[Date] ),
ALLEXCEPT ( 'Date', 'Date'[financial year] )
)
If there isn't, you can add a [financial year] column in your date table then create the measure.
Financial Year =
IF (
'Date'[Month] >= 7,
'Date'[Year] & "/" & 'Date'[Year] + 1,
'Date'[Year] - 1 & "/" & 'Date'[Year]
)
Result is as below.
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @vincenttys ,
Do you have a [financial year] column in your date table? If there is, you can try this measure.
Count of days =
CALCULATE (
COUNT ( 'Date'[Date] ),
ALLEXCEPT ( 'Date', 'Date'[financial year] )
)
If there isn't, you can add a [financial year] column in your date table then create the measure.
Financial Year =
IF (
'Date'[Month] >= 7,
'Date'[Year] & "/" & 'Date'[Year] + 1,
'Date'[Year] - 1 & "/" & 'Date'[Year]
)
Result is as below.
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi,
If you have Date, you could add the fiscal year to your Date Dim and then calculate the Count of the Days in each Financial year or put the slicer based on the particular field.
"Fiscal Year",if(_startOfFiscalYear=1,YEAR([Date]),YEAR([Date])+ QUOTIENT(MONTH([Date])+ (13-_startOfFiscalYear),13))
User | Count |
---|---|
94 | |
79 | |
73 | |
63 | |
59 |
User | Count |
---|---|
110 | |
103 | |
84 | |
65 | |
62 |