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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
n3ptune
Helper II
Helper II

Set today's week no (year starting from April) as max value in filter

Hello i have fin year 1/4-31/3 and i want to have a filter with between slider for week no.

I want to set the max value of the slider to be the today's week No.

 

1 REPLY 1
amitchandak
Super User
Super User

@n3ptune , You have to create a column like this 

Week Type = Switch( True(),
[start week]<=Today() && [end date]>=Today(),"This Week" ,
[start week]<=Today()-7 && [end date]>=Today()-7,"Last Week" ,
[Week Name]
)

 

or

new column =

var _date = max(Table[Date])

return

Switch( True(),
[start week]<=_date && [end date]>=_date ,"This Week" ,
[Week Name]
)

 

for week start and end refer

https://community.powerbi.com/t5/Community-Blog/Any-Weekday-Week-Decoding-Date-and-Calendar-2-5-Powe...

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.