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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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
Top Kudoed Authors