Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

KPI visual Current year filtering

Hello everyone,

 

I found a similar post on this topic but I wasnt able to implement it in my report.

 

I'd like for the KPi visua to display the performance of the current year.

Is there a way to put the simple measure for current year YEAR(TODAY()) into the filtering section of the visual?

Or do I have to calculate the value in a seperate measure with a filter regarding the current year?

 

My period coloumn holds full years (2021,2022,2023 etc.) only.

sk2424_0-1668503693069.png

 

Thanks in advance!

 

1 ACCEPTED SOLUTION
v-xiaotang
Community Support
Community Support

Hi @Anonymous 

>> Is there a way to put the simple measure for current year YEAR(TODAY()) into the filtering section of the visual?

create a measure and put it into visual-level filter and set it to 1       

Measure = 
var _selected=SELECTEDVALUE(slicer[Column1])
return SWITCH(TRUE(),
_selected="this year", IF(YEAR( MIN('Table'[Date]))=YEAR(TODAY()),1),
_selected="all",1)

vxiaotang_2-1668587788442.png

result

vxiaotang_0-1668587697248.pngvxiaotang_1-1668587704870.png

Best Regards,

Community Support Team _Tang

If this post helps, please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-xiaotang
Community Support
Community Support

Hi @Anonymous 

>> Is there a way to put the simple measure for current year YEAR(TODAY()) into the filtering section of the visual?

create a measure and put it into visual-level filter and set it to 1       

Measure = 
var _selected=SELECTEDVALUE(slicer[Column1])
return SWITCH(TRUE(),
_selected="this year", IF(YEAR( MIN('Table'[Date]))=YEAR(TODAY()),1),
_selected="all",1)

vxiaotang_2-1668587788442.png

result

vxiaotang_0-1668587697248.pngvxiaotang_1-1668587704870.png

Best Regards,

Community Support Team _Tang

If this post helps, please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.