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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Filter chart based on today's day number

Hello PBI users,

 

I am currently trying to display a graph filtered by today's day (monday to sunday).

I already have a column with the day name and day number in my table. However, when I want to filter my chart with these columns, I need to select a specified day (for example day number from 1 to 7)... and I would like it to be today's (all mondays filtered in my table if today is monday for example).

Any idea how to implement this feature please ?

 

Regards,

 

Antoine

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous 

Assuming using a day table an that has a weekday or use weekday also in filter

 


Measure =
Var _max = weekday(maxx(allselected(Date),Date[date])) // Or take today
return
calculate([Value Measure], filter(all(Date),Date[Weekday] =_max))

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@Anonymous 

Assuming using a day table an that has a weekday or use weekday also in filter

 


Measure =
Var _max = weekday(maxx(allselected(Date),Date[date])) // Or take today
return
calculate([Value Measure], filter(all(Date),Date[Weekday] =_max))

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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