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 all!
Please see below picture. So I guess my problem is kinda straight forward but can't find the answer.
I might be searching for the wrong terms. Apologies.
Anyhow. As you can see below the first column "link" is a unique "User" (lets say) and the User has a balance in the last column "Claimed Essence". This balance increases for everyday as can see with the "DATE" and "Claimed Essence" Value.
I have managed to derive a calculated column for the "previous date" for the balance value (not sure if I need it).
What I want to do is to calculate the DIFFERENCE (The increased value) between the balance at the previous date for this "LINK" vs the DATE to get the (new) "INCREASED VALUE" that is the "added" value to the balance.
What would the formula be for that calculated column "INCREASED VALUE"?
Exmaple outcome:
Row 2 (from top) would say: 2 (844-842 = 2)
Row 3 (from top) would say: 8 (852-844 =8 )
All fields are in the same data table just like visualized but there are many different unique "links".
Each Unique "link" only appears once on every date with its own balance. Hence granularity of the table is per "link" per "date".
See it like "accounts" at a bank with increased "balance" for each day and the question is to calc the added value with a calculated column.
Thanks a lot guys!
Solved! Go to Solution.
Hi @CJVE ,
Please try:
INCREASED VALUE =
var _previous= LOOKUPVALUE('Table'[Claimed Essence],'Table'[Date],[PreviousEssenceYieldDate])
return IF(_previous=BLANK(),BLANK(), [Claimed Essence]-_previous)
Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @CJVE ,
Please try:
INCREASED VALUE =
var _previous= LOOKUPVALUE('Table'[Claimed Essence],'Table'[Date],[PreviousEssenceYieldDate])
return IF(_previous=BLANK(),BLANK(), [Claimed Essence]-_previous)
Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Please provide sanitized sample data that fully covers your issue. If you paste the data into a table in your post or use one of the file services it will be easier to work with. Please show the expected outcome.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
123 | |
85 | |
85 | |
70 | |
51 |
User | Count |
---|---|
205 | |
153 | |
97 | |
79 | |
69 |