Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
I have a date table which includes a fiscal year column - "FYXX" as well as a standard date column. I need to set a page filter on a report so it is displaying FYTD date on my visuals. I need this to automatically switch to the next fiscal year when we switch from FY20 to FY21.
I'm guessing I need to add some sort of flag column but I can't wrap my head around how I would do this?
Thank you.
Solved! Go to Solution.
@mvgust , Try like
Is FY = if(startofyear('Date'[Date],"3/31")<=TODAY() && endofyear('Date'[Date],"3/31")>=TODAY(),1,0)
I don't know if I explained myself clearly. I need to add a flag column, possibly to the date table? I need to compare today's date and determine based on today's date is it in the current fiscal year (based on my fiscal year column in the date table). If it is then it's a 1 if not then it's a 0.
@mvgust , Try like
Is FY = if(startofyear('Date'[Date],"3/31")<=TODAY() && endofyear('Date'[Date],"3/31")>=TODAY(),1,0)
Thank you! Exactly what I was looking for.
User | Count |
---|---|
98 | |
90 | |
83 | |
69 | |
67 |
User | Count |
---|---|
113 | |
104 | |
101 | |
73 | |
65 |