This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowA new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.
Creating a Slicer for weeks and this works if I only use DATE
Working
Slicer2 =
var _start_date = CALCULATE(MIN('Work Items'[Team Date 01].[Date]),FILTER('Work Items','Work Items'[weeknum]=EARLIER('Work Items'[weeknum])))
var _end_date = CALCULATE(MAX('Work Items'[Team Date 01].[Date]),FILTER('Work Items','Work Items'[weeknum]=EARLIER('Work Items'[weeknum])))
return
_start_date &" - "& _end_date
trying to add Year to this column but throws a error, not sure if I can concatenate.
Slicer2 =
var _start_date = CALCULATE(MIN('Work Items'[Team Date 01].[Year]) & "" & ('Work Items'[Team Date 01].[Date]),FILTER('Work Items','Work Items'[weeknum]=EARLIER('Work Items'[weeknum])))
var _end_date = CALCULATE(MAX('Work Items'[Team Date 01].[Year]) & "" & ('Work Items'[Team Date 01].[Date]),FILTER('Work Items','Work Items'[weeknum]=EARLIER('Work Items'[weeknum])))
return
_start_date &" - "& _end_date
Thank you
Solved! Go to Solution.
Hi @BratKat ,
Is it possible to try to bring up the year?
Like this:
Fiscal Quarter =
VAR _1 =
IF (
'Work Items'[Quarters] = 3,
1,
IF (
'Work Items'[Quarters] = 4,
2,
IF ( 'Work Items'[Quarters] = 1, 3, IF ( 'Work Items'[Quarters] = 2, 4 ) )
)
)
VAR _2 =
YEAR ( table[date] )
RETURN
_2 & " " & _1
How to Get Your Question Answered Quickly
If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .
Best Regards
Community Support Team _ Rongtie
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @BratKat ,
Please have a try.
Slicer2___ =
VAR _start_date =
CALCULATE (
MIN ( 'Work Items'[Team Date 01].[Year] ) & ""
& MIN ( 'Work Items'[Team Date 01].[Date] ),
FILTER (
'Work Items',
'Work Items'[weeknum] = EARLIER ( 'Work Items'[weeknum] )
)
)
VAR _end_date =
CALCULATE (
MAX ( 'Work Items'[Team Date 01].[Year] ) & ""
& MAX ( 'Work Items'[Team Date 01].[Date] ),
FILTER (
'Work Items',
'Work Items'[weeknum] = EARLIER ( 'Work Items'[weeknum] )
)
)
RETURN
_start_date & " - " & _end_date
If it still does not help, please provide you sample data about [Team Date 01].
How to Get Your Question Answered Quickly
If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .
Best Regards
Community Support Team _ Rongtie
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
I actually used the incorrect column code for what am trying to achive.
This is the actual column code using
Just trying to add the Year along wih the Quarter number as quarter 2 is 2022 - our fiscal quaters start in July, sorry about the mix up on my end.
Hi @BratKat ,
Is it possible to try to bring up the year?
Like this:
Fiscal Quarter =
VAR _1 =
IF (
'Work Items'[Quarters] = 3,
1,
IF (
'Work Items'[Quarters] = 4,
2,
IF ( 'Work Items'[Quarters] = 1, 3, IF ( 'Work Items'[Quarters] = 2, 4 ) )
)
)
VAR _2 =
YEAR ( table[date] )
RETURN
_2 & " " & _1
How to Get Your Question Answered Quickly
If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .
Best Regards
Community Support Team _ Rongtie
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
The slicer returned works however there is no year listed only the Fiscal quarter and our data starts last October, so trying to denote which year the quarter is showing.
Check out the May 2026 Power BI update to learn about new features.
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 |
|---|---|
| 26 | |
| 25 | |
| 22 | |
| 19 | |
| 17 |
| User | Count |
|---|---|
| 42 | |
| 41 | |
| 40 | |
| 21 | |
| 20 |