Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
I'd like to capture (maybe in a different column) the max date(Week) under a single month(Month). I think I can manually upadte this kind of data but I am curious though as to how to actually do it via PowerQuery(if possible).
Note: this is just for easy viewing, they are in a single column (2 columns), actual data is below it
| Week | Month |
| 1/14/2018 | 1/1/2018 |
| 1/14/2018 | 1/1/2018 |
| 1/21/2018 | 1/1/2018 |
| 1/21/2018 | 1/1/2018 |
| 1/21/2018 | 1/1/2018 |
| 1/21/2018 | 1/1/2018 |
| 1/28/2018 | 1/1/2018 |
| 1/28/2018 | 1/1/2018 |
| 1/28/2018 | 1/1/2018 |
| 1/28/2018 | 1/1/2018 |
| 2/4/2018 | 2/1/2018 |
| 2/4/2018 | 2/1/2018 |
| 2/4/2018 | 2/1/2018 |
| 2/4/2018 | 2/1/2018 |
| 2/11/2018 | 2/1/2018 |
| 2/11/2018 | 2/1/2018 |
| 2/11/2018 | 2/1/2018 |
| 2/11/2018 | 2/1/2018 |
| 2/18/2018 | 2/1/2018 |
| 2/18/2018 | 2/1/2018 |
| 2/18/2018 | 2/1/2018 |
| 2/25/2018 | 2/1/2018 |
| 2/25/2018 | 2/1/2018 |
| 2/25/2018 | 2/1/2018 |
| 3/4/2018 | 3/1/2018 |
| 3/4/2018 | 3/1/2018 |
| 3/4/2018 | 3/1/2018 |
| 3/11/2018 | 3/1/2018 |
| 3/11/2018 | 3/1/2018 |
| 3/11/2018 | 3/1/2018 |
| 3/18/2018 | 3/1/2018 |
| 3/18/2018 | 3/1/2018 |
| 3/18/2018 | 3/1/2018 |
| 3/25/2018 | 3/1/2018 |
| 3/25/2018 | 3/1/2018 |
| 3/25/2018 | 3/1/2018 |
| 4/1/2018 | 4/1/2018 |
| 4/1/2018 | 4/1/2018 |
| 4/1/2018 | 4/1/2018 |
| 4/8/2018 | 4/1/2018 |
| 4/8/2018 | 4/1/2018 |
| 4/8/2018 | 4/1/2018 |
| 4/15/2018 | 4/1/2018 |
| 4/15/2018 | 4/1/2018 |
| 4/15/2018 | 4/1/2018 |
| 4/22/2018 | 4/1/2018 |
| 4/22/2018 | 4/1/2018 |
| 4/22/2018 | 4/1/2018 |
| 4/29/2018 | 5/1/2018 |
| 4/29/2018 | 5/1/2018 |
| 4/29/2018 | 5/1/2018 |
| 5/6/2018 | 5/1/2018 |
| 5/6/2018 | 5/1/2018 |
| 5/6/2018 | 5/1/2018 |
| 5/13/2018 | 5/1/2018 |
| 5/13/2018 | 5/1/2018 |
| 5/13/2018 | 5/1/2018 |
| 5/20/2018 | 5/1/2018 |
| 5/20/2018 | 5/1/2018 |
| 5/20/2018 | 5/1/2018 |
| 5/27/2018 | 5/1/2018 |
| 5/27/2018 | 5/1/2018 |
| 5/27/2018 | 5/1/2018 |
Solved! Go to Solution.
One way I could think of is to duplicate your original query, perform Group By transformation by Month with MAX aggregation on Week, then merge join the orginal query with the newly grouped query on Month column
One way I could think of is to duplicate your original query, perform Group By transformation by Month with MAX aggregation on Week, then merge join the orginal query with the newly grouped query on Month column
I can't try that now but I see what you want me to do. I think that could be it! I'll let you know how it panned out after I try it.
By the way, SUMMARIZECOLUMNS Function, SUMMARIZE Function and GROUPBY Function could be used in DAX.
Vote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 56 | |
| 52 | |
| 45 | |
| 16 | |
| 16 |
| User | Count |
|---|---|
| 107 | |
| 105 | |
| 40 | |
| 33 | |
| 25 |