Forum Discussion
Add a column for current and last Fiscal Year
- 2 years ago
Hi,
You can use this calculated column :
Check FY =
VAR CurrentFY =
CALCULATE (
MAX ( 'DateTable'[Fiscal Year] ),
'DateTable'[Date] = TODAY (),
ALL ( DateTable )
)
VAR DifFY = 'DateTable'[Fiscal Year] - CurrentFY
RETURN
SWITCH ( TRUE (), DifFY = 0, "Current FY", DifFY = -1, "Last FY", "" )And you can use a slicer with the values of this column.
Regards
Mark my post as a solution if it helped you😀
Hi,
You can use this calculated column :
Check FY =
VAR CurrentFY =
CALCULATE (
MAX ( 'DateTable'[Fiscal Year] ),
'DateTable'[Date] = TODAY (),
ALL ( DateTable )
)
VAR DifFY = 'DateTable'[Fiscal Year] - CurrentFY
RETURN
SWITCH ( TRUE (), DifFY = 0, "Current FY", DifFY = -1, "Last FY", "" )
And you can use a slicer with the values of this column.
Regards
Mark my post as a solution if it helped you😀
- Anonymous2 years agoNot applicable
Very elegant - it works perfectly.
Thank you!
C.