Forum Discussion
Get latest Balance
- 6 years ago
Try like
LASTNONBLANKVALUE(Table[DateID], max(Table[Balance]))
Or
LASTNONBLANKVALUE(Table[DateID], sum(Table[Balance]))Date Join should be on date ID. You can try using Date[Date] in place of Table[Date ID]
Hi,
Will you be selecting Data ID4 in the filter/slicer or do you want the DAX formula to pick up the last balance of each COA automatically? Also, do you have actual date entries in the DateID column? I'd request you to share the actual date format that you have in the DateID column.
- Sachy1236 years agoHelper V
Yes will be selecting the dateid from the filter. well the date-id is coming via date dimension which has got format dd-mm-yyyy
- Ashish_Mathur6 years agoSuper User
- Sachy1236 years agoHelper V
Thanks! in your file the logic is working as expected.
but when I translate it in to my data, it throws me an error : An invalid numeric representation of a date value was encountered.
The date format in the date table was as follows 2016-06-13 00:00:00.000
Also , the COA data is a direct query..