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.
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
Solved! Go to Solution.
@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))
@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))
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
110 | |
96 | |
77 | |
63 | |
55 |
User | Count |
---|---|
143 | |
109 | |
89 | |
84 | |
66 |