The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
I've mentioned it before but I haven't yet reached a solid solution. The scenario is about values that stored in Azure's SQL Database and retrieved in Power BI in direct query mode. The ten values are sampled and stored accumulatively (totalizer) several times per day. But, the values we really want to use for reporting reasons are the last values of every day.
In the below screenshot is a sample of data after exported to an EXCEL file for the sake of this post:
I want to calculate the sum of values of the last timestamp of the day and store it to new column, e.g. TOTALMAX_PERDAY. The same per week, per month, per year and stored to respective columns, e.g. TOTALMAX_PERWEEK, TOTALMAXPER_MONTH etc.
Any ideas appreciated,
Thanks in advance.
User | Count |
---|---|
14 | |
11 | |
6 | |
6 | |
5 |
User | Count |
---|---|
28 | |
17 | |
12 | |
7 | |
5 |