What version are you on?
7 Days each with Unique client_id that purchased something each day?
You should be able to do this fairly straightforward in Lens if you are a fairly recent version.
Seems like you just need the unique client_id perday over the last week.
The data histogram would be based on your ord_trd_trade_date and set interval to 1 d
Here is using the sample Kibana eCommerce Data that comes with every elasticsearch.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.