March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch 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.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
114 | |
76 | |
57 | |
52 | |
44 |
User | Count |
---|---|
168 | |
116 | |
63 | |
57 | |
50 |