hey guys, i have a fact table that records transac...
# gooddata-platform
f
hey guys, i have a fact table that records transactions anyone know how i can get the last transaction date for each id? I tried the following SELECT MAX(DATE) BY CUSTOMER_ID
j
Hi Felipe, the metric would look something like the following:
Copy code
SELECT MAX ((SELECT (10000 * MAX(Year (Date))) + (100 * MAX(Month (Date))) + (MAX(Day of Month (Date))) BY <connection point>)) 
WHERE (SELECT COUNT(Date (Date), <connection point>) BY Year (Date), ALL OTHER) > 0
Then you would need to use custom number formatting to display the date as such:
Copy code
[=null]N/A; ########