This question is a continuation of here I'm in working on project with goal of connecting multiple banks, in Netherlands, into our platform.
Every time a user connects to a single bank, we want to send out a metric and show it in Azure dashboard. We are already doing it, but we want to extend its functionalities.
customMetrics
| where name == "CustomerGrantedConsent" and customDimensions.IsInitialConsent == "True"
| extend BankName = customDimensions.BankName
| summarize Count = count() by tostring(BankName), bin(timestamp, 1d)
| order by BankName asc, timestamp asc
| serialize FirstConsents = row_cumsum(Count, BankName != prev(BankName))
With this query, we are able to aggregate the sum of the consents of banks, when they happen. This is the result so far. As you can see, , we want to sum the amount with time.
I mean, if yesterday we had 4 consents, today the total is going to be:
yesterday_count + today_count
4 + today_count
Right now, if there are no consents today, we don't show the sum of the previous day and that's the problem. If yesterday, we had 4 consents for BUNQ, today I want to show at least 4:
- BUNQ had 4 connections 31-01-2021
- BUNQ in total will have, at least, 4 connections today..
How can we do this?
datatable
format, so that it would be easy to copy and paste it, to help with the query. You can easily do it in Kusto Explorer by selecting a few records in the results pane, right-click on the selection, and select "Copy as datatable() operator". Thanks. – Slavik N