Forum Discussion
Anonymous
6 years agoNot applicable
Week grouping
Hi guys, I'm trying to group my dates by week and used the Grouping function and it worked ok. But I'd like to group by the week ending date and not by the week starting like it is doing right no...
- 6 years ago
Hi Anonymous
Try this Column.
Column 2 = VAR __yearWeek = FORMAT( 'Calendar'[Date], "YYYYWW" ) RETURN CALCULATE( MAX( 'Calendar'[Date] ), ALL( 'Calendar' ), FORMAT( 'Calendar'[Date], "YYYYWW" ) = __yearWeek )Best Regards,
Mariusz
If this post helps, then please consider Accepting it as the solution.
Mariusz
6 years agoCommunity Champion
Hi Anonymous
You can add a column in the query editor, like below.
Best Regards,
Mariusz
If this post helps, then please consider Accepting it as the solution.
Mariusz
If this post helps, then please consider Accepting it as the solution.
Anonymous
6 years agoNot applicable
Thanks Mariusz but in this case I would be using a Date table that was created using Dax, therefore it doesn't not show on the Power Query Editor. How can I go about that?