This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
Hi all,
I have the slicer below from my Dim_Calendar table:
As you can see, it is displaying all years because the CALENDARAUTO deature is reading lots of dates across all the data in the model.
Is there a way to restrict the slicer so it always shows:
Previous 3 FY
Current FY
Future 3 FY
So 7 FY's in total.
Thanks,
Sabil
Solved! Go to Solution.
Hi @sabilahmed ,
Please refer to My steps to see if it helps you.
Create a year column first.
yeat = YEAR('Table'[Date])Then create a column put into the slicer.
Column =
VAR _1 =
YEAR ( TODAY () )
VAR _qian3 = _1 - 3
VAR _hou3 = _1 + 3
RETURN
IF ( 'Table'[yeat] >= _qian3 && 'Table'[yeat] <= _hou3, 'Table'[yeat], BLANK () )
Best regards.
Hi @sabilahmed ,
Please refer to My steps to see if it helps you.
Create a year column first.
yeat = YEAR('Table'[Date])Then create a column put into the slicer.
Column =
VAR _1 =
YEAR ( TODAY () )
VAR _qian3 = _1 - 3
VAR _hou3 = _1 + 3
RETURN
IF ( 'Table'[yeat] >= _qian3 && 'Table'[yeat] <= _hou3, 'Table'[yeat], BLANK () )
Best regards.
@sabilahmed , you have to create a flag and use that filter.
Get a year for you FY using start FY date or end FY Date
Then create a flag
new column =
Var _max = maxx(filter(Date, date[Date] = today() ) , [FY]) //Here FY is a number
return
if([FY] >= _max -3 && [FY] <= _max+3, 1, 0)
refer this for FY start date
or
Creating Financial Calendar - From Any Month
https://community.powerbi.com/t5/Community-Blog/Creating-Financial-Calendar-Decoding-Date-and-Calend...
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 30 | |
| 23 | |
| 23 | |
| 20 | |
| 16 |
| User | Count |
|---|---|
| 63 | |
| 38 | |
| 25 | |
| 23 | |
| 22 |