Forum Discussion
Get Value from Date table based on selected date
- 5 years ago
Hi steen_p ,
Try this:
Today = TODAY()SelectedWeekID 2 = IF ( ISFILTERED ( 'Date'[Date] ), MAX ( 'Date'[WeekID] ), WEEKNUM ( [Today], 1 ) )Best Regards,
Icey
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
steen_p , refer if my blogs can help
Power BI — Week on Week and WTD
https://medium.com/@amitchandak.1978/power-bi-wtd-questions-time-intelligence-4-5-98c30fab69d3
https://community.powerbi.com/t5/Community-Blog/Week-Is-Not-So-Weak-WTD-Last-WTD-and-This-Week-vs-Last-Week/ba-p/1051123
https://www.youtube.com/watch?v=pnAesWxYgJ8
- steen_p5 years ago
Helper II
Hi amitchandak
Sorry for the late reply, but thanks for you reply. It seems like you are doing something along the line of what I've ben thinking :-).
Do you also have an input, on how I can use todays date as "selection" for the date in case the user haven't selected anything?
Regards
Steen
- amitchandak5 years ago
Super User
steen_p , for today you have to create flag in date table and filter it
Is Today = if('Date'[Date]=TODAY(),"Today",[Date]&"")