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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
icturion
Resolver II
Resolver II

Summarize tabel on last date values

Hi,

I have a table with data (see table below).

Table.JPG

From the table, I only want to use the records with the last time per value in the column "kenteken". I also want to be able to use the values ​​in the columns lon and lat.

 

This is what i got so far:

New table --> Laatste locatie = SUMMARIZE(AQZ_TRAVEL_MON,AQZ_TRAVEL_MON[Kenteken], "Laatst bekend", MAX(AQZ_TRAVEL_MON[Date time]))
 
result is
table result.JPG
How do i now included the columns lon en lat with the correnspondig values?
1 ACCEPTED SOLUTION
v-easonf-msft
Community Support
Community Support

Hi, @icturion 

You can add two calculated columns as below:

 

lon =
LOOKUPVALUE (
    AQZ_TRAVEL_MON[lon],
    AQZ_TRAVEL_MON[kenteken], 'Laatste locatie'[kenteken],
    AQZ_TRAVEL_MON[Date time], 'Laatste locatie'[Laatst bekend]
)
lat = 
LOOKUPVALUE (
    AQZ_TRAVEL_MON[lat],
    AQZ_TRAVEL_MON[kenteken], 'Laatste locatie'[kenteken],
    AQZ_TRAVEL_MON[Date time], 'Laatste locatie'[Laatst bekend]
)

 

155.png

 

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

View solution in original post

2 REPLIES 2
v-easonf-msft
Community Support
Community Support

Hi, @icturion 

You can add two calculated columns as below:

 

lon =
LOOKUPVALUE (
    AQZ_TRAVEL_MON[lon],
    AQZ_TRAVEL_MON[kenteken], 'Laatste locatie'[kenteken],
    AQZ_TRAVEL_MON[Date time], 'Laatste locatie'[Laatst bekend]
)
lat = 
LOOKUPVALUE (
    AQZ_TRAVEL_MON[lat],
    AQZ_TRAVEL_MON[kenteken], 'Laatste locatie'[kenteken],
    AQZ_TRAVEL_MON[Date time], 'Laatste locatie'[Laatst bekend]
)

 

155.png

 

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

lbendlin
Super User
Super User

The other day I read an article about SUMMARIZE, and came away a bit shellshocked. 

 

All the secrets of SUMMARIZE - SQLBI

 

In a nutshell - you're likely better off using GROUPBY()

 

In any case you can add Lat and Lon to the groupings.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.