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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

Find out what's new and trending in the Fabric Community.