cancel
Showing results for 
Search instead for 
Did you mean: 
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
Join Arun Ulag at MPPC23

Join Arun Ulag at MPPC23

Get a sneak peek into this year's Power Platform Conference Keynote.

PBI Sept Update Carousel

Power BI September 2023 Update

Take a look at the September 2023 Power BI update to learn more.

Learn Live

Learn Live: Event Series

Join Microsoft Reactor and learn from developers.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

Top Solution Authors