Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
ovetteabejuela
Impactful Individual
Impactful Individual

Power Query | Get Max Date (2 Columns)

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

MaxDate_2Columns.PNG

 

 

 

WeekMonth
1/14/20181/1/2018
1/14/20181/1/2018
1/21/20181/1/2018
1/21/20181/1/2018
1/21/20181/1/2018
1/21/20181/1/2018
1/28/20181/1/2018
1/28/20181/1/2018
1/28/20181/1/2018
1/28/20181/1/2018
2/4/20182/1/2018
2/4/20182/1/2018
2/4/20182/1/2018
2/4/20182/1/2018
2/11/20182/1/2018
2/11/20182/1/2018
2/11/20182/1/2018
2/11/20182/1/2018
2/18/20182/1/2018
2/18/20182/1/2018
2/18/20182/1/2018
2/25/20182/1/2018
2/25/20182/1/2018
2/25/20182/1/2018
3/4/20183/1/2018
3/4/20183/1/2018
3/4/20183/1/2018
3/11/20183/1/2018
3/11/20183/1/2018
3/11/20183/1/2018
3/18/20183/1/2018
3/18/20183/1/2018
3/18/20183/1/2018
3/25/20183/1/2018
3/25/20183/1/2018
3/25/20183/1/2018
4/1/20184/1/2018
4/1/20184/1/2018
4/1/20184/1/2018
4/8/20184/1/2018
4/8/20184/1/2018
4/8/20184/1/2018
4/15/20184/1/2018
4/15/20184/1/2018
4/15/20184/1/2018
4/22/20184/1/2018
4/22/20184/1/2018
4/22/20184/1/2018
4/29/20185/1/2018
4/29/20185/1/2018
4/29/20185/1/2018
5/6/20185/1/2018
5/6/20185/1/2018
5/6/20185/1/2018
5/13/20185/1/2018
5/13/20185/1/2018
5/13/20185/1/2018
5/20/20185/1/2018
5/20/20185/1/2018
5/20/20185/1/2018
5/27/20185/1/2018
5/27/20185/1/2018
5/27/20185/1/2018
1 ACCEPTED SOLUTION
Anonymous
Not applicable

@ovetteabejuela,

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

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

@ovetteabejuela,

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.

@ovetteabejuela,

 

By the way, SUMMARIZECOLUMNS FunctionSUMMARIZE Function and GROUPBY Function could be used in DAX.

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.