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

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.

Reply
AlexDantin
Helper I
Helper I

Generate MaxDate within a group

I have a table full of test instances. Each test is performed against multiple models by multiple individuals, sometimes multiple times within the same day.

 

I want to retrieve the results for each unique User/Model/Test within a calendar week only for the very last occurence within that week

 

On my table I have a numeric datekey, which includes the time. I have also including grouping columns for Year+Week (based on the date time stamp) and an item key combo of User/Model/Test

 

I am getting a "expression refers to multiple columns...cannot be converted to a scalar value" error with the following formula:

 

Column = GROUPBY(table,table[Uniquename],table[WeekGroup],"MaxDate",MAXX(CURRENTGROUP(),table[datekey]))

 

Not sure if I need an additional table of unique values or if I'm missing something else

0 REPLIES 0

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.