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 All,
Hopefully an easy question.
I have a data set where the value of a period is stored every subsequent period, where the period value is the same but the 'as at period' is monthly. The value to be referenced is the one represented in the latest 'as at period'.
In the below table I only want to bring back the two values highlighted in green.
Solved! Go to Solution.
I solved my issue.
I created a calculated column which concatenated the elements which would impact my filter, then using that column as a variable I filtered my table using MAXX on the As At date.
So far the numbers reconcile.
I solved my issue.
I created a calculated column which concatenated the elements which would impact my filter, then using that column as a variable I filtered my table using MAXX on the As At date.
So far the numbers reconcile.
I am sure there is a more efficient way to to do this so I will let the experts improve on my answer (note this is a calculated table you need to create)
AsAtPeriod =
SUMMARIZE (
'Table',
'Table'[Data Item],
"MAXDATE",
CALCULATE (
MAX ( 'Table'[As of Date] ),
ALLEXCEPT ( 'Table', 'Table'[Data Item] )
),
"VAL",
CALCULATE (
SUM ( 'Table'[Value] ),
FILTER (
'Table',
'Table'[As of Date]
= CALCULATE (
MAX ( 'Table'[As of Date] ),
ALLEXCEPT ( 'Table', 'Table'[Data Item] )
)
)
)
)
Regards,
Moiz
If this post helps, please "Accept" it as Solution to help other members find it.
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 |
---|---|
92 | |
86 | |
85 | |
66 | |
49 |
User | Count |
---|---|
140 | |
113 | |
106 | |
64 | |
60 |