Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreGet certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now
Hi there
I have a table set up like this
I wish to create a table visual which takes the sum of the most recent values for each ID for every rounded date time. So the desired output would look like this
I am using direct query mode.
Any help is much appreciated.
Thanks
Hi,
I assume the table name is "Data".
Please try the below DAX measure if it suits your requirement.
Expected result dax measure: =
SUMX (
WINDOW (
-1,
ABS,
-1,
ABS,
SUMMARIZE ( Data, Data[ID], Data[DateTime], Data[Value] ),
ORDERBY ( Data[DateTime], ASC ),
,
PARTITIONBY ( Data[ID] )
),
Data[Value]
)
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.
User | Count |
---|---|
87 | |
76 | |
74 | |
55 | |
45 |
User | Count |
---|---|
117 | |
106 | |
77 | |
66 | |
65 |