Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

Max(date) group by customer

Corona1968
Level 1
Level 1

Hello!!

I'm trying to capture the highest date for the same client and I do not know how to do it.

1436775_pastedImage_1.png

Thank you very much in advance

1 Accepted Solution
Amit_Kumar
Correct answer by
Community Advisor
Community Advisor

Hi

have you seen this?

Using aggregates

  1. Create a query. Here, the goal is to calculate the last known creation date out of all of the recipients in the database. The query therefore does not contain a filter.
  2. Select Add data.
  3. In the windows that open, select Data linked to the filtering dimension then Filtering dimension data.
  4. In the Data to add window, add a column that calculates the maximum value for the Creation date field in the table of recipients. You can use the expression editor or enter max(@created) directly into a field in the Expression column. Then click the Finish button.datamanagement_usecase_2.png
  5. Click Edit additional data then Advanced parameters.... Check the Disable automatic adding of the primary keys of the targeting dimension option.This option ensures that all the recipients are not displayed as a result and that data added explicitly is not kept. In this case, it refers to the last date a recipient was created.Leave the Remove duplicate rows (DISTINCT) option checked.

View solution in original post

2 Replies
Amit_Kumar
Correct answer by
Community Advisor
Community Advisor

Hi

have you seen this?

Using aggregates

  1. Create a query. Here, the goal is to calculate the last known creation date out of all of the recipients in the database. The query therefore does not contain a filter.
  2. Select Add data.
  3. In the windows that open, select Data linked to the filtering dimension then Filtering dimension data.
  4. In the Data to add window, add a column that calculates the maximum value for the Creation date field in the table of recipients. You can use the expression editor or enter max(@created) directly into a field in the Expression column. Then click the Finish button.datamanagement_usecase_2.png
  5. Click Edit additional data then Advanced parameters.... Check the Disable automatic adding of the primary keys of the targeting dimension option.This option ensures that all the recipients are not displayed as a result and that data added explicitly is not kept. In this case, it refers to the last date a recipient was created.Leave the Remove duplicate rows (DISTINCT) option checked.

View solution in original post