Forum Discussion
Display data for the past weeks
- 9 years ago
Just for everyone's reference, I was able to do it by putting my weeks in the filter and then filtering it using "Top N" then setting it to a number then choosing last weeks in the setting below it. Pretty straightforward.
dearwatson Yes I understand how useful it could be to have a date dimension, but my data isn't really that date friendly. The only dates colums I have are the following:
Year: xxxx
Year/Month: xxxx/xx
Year/Wk: xxxx/xx
Now from there, I do not know how Power BI can extract date.
Also, I tried using this DAX measure as a work around:
FFE wk4 = FILTER('Master Data','Master Data'[Week]=(WEEKNUM(TODAY())-1)) which means like filtering the dataset to the week before this week
but I get this error "The expression refers to multiple columns. Multiple columns cannot be converted to a scalar value."
Thanks so much.
Just for everyone's reference, I was able to do it by putting my weeks in the filter and then filtering it using "Top N" then setting it to a number then choosing last weeks in the setting below it. Pretty straightforward.