Forum Discussion
Adding Calculated Column with the latest Item
- 2 years ago
You can use the following DAX formula to create a calculated column:
Latest Value = VAR _currentCategory = Data[Category] VAR _maxDate = CALCULATE ( MAX ( Data[Date] ), FILTER ( Data, Data[Category] = _currentCategory ) ) VAR _leastVal = CALCULATE ( MAX ( Data[Current] ), FILTER ( Data, Data[Date] = _maxDate && Data[Category] = _currentCategory ) ) RETURN _leastValHere is the solution screenshot:
Make sure to leave a kudo if it resolves your issues...
Thanks 😊
Happy to help 😊
Best Regards,
Udit
If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudo 👍
🚀 Let's Connect: LinkedIn || YouTube || Medium || GitHub
✨ Visit My Linktree: LinkTree
Is it possible to ignore blanks a couple of my items have nothing for the current year but do for the prior
- quantumudit2 years agoSuper User
Indeed, the ISBLANK() function in DAX can be utilized in conjunction with an IF() function to either ignore or substitute blank values as needed.
- Daniel482 years agoHelper I
How would it go to last prior value? Mine is not seeming to work.
- quantumudit2 years agoSuper User
Maybe create a new ticket and show exactly what you want to achieve and then, I will check it out