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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
jorgensorensen
Regular Visitor

Slicer in power bi

 

 

 

1 REPLY 1
Kishore_KVN
Super User
Super User

Hello @jorgensorensen ,

You have to create a concatenated column for the same. Before that you have to create a week column. 

For week column DAX will be as below:

Week Num = "Week " & WEEKNUM(Data[Date])

Next create a slicer column as you need using below calculation:

Slicer Value = 
Var A = CALCULATE(MINX(Data,Data[Date]),ALLEXCEPT(Data,Data[Week Num]))
Var B = CALCULATE(MAXX(Data,Data[Date]),ALLEXCEPT(Data,Data[Week Num]))
Return
Data[Week Num] &
" - " & 
YEAR(Data[Date]) &
"(" &
FORMAT(A,"dd.mm") &
" - " &
FORMAT(B,"dd.mm") &
")"

Now create a slicer sorting column called as week number sorting using below DAX:

Week Number Sorting = WEEKNUM(Data[Date])

select slicer value column and sort it with respect to slicer sorting column. 
Then take slicer value column in to your slicer then the output looks as below:

Kishore_KVN_0-1712924179588.png

 

If this post helps, then please consider accepting it as the solution to help other members find it more quickly. Thank You!!

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors