Forum Discussion
Sachy123
Helper V
6 years agoGet latest Balance
I have a COA table which comes as a result of direct query in the following format. DateID COA Balance 1 1001 50 1 1002 60 2 1003 100 2 1001 30 3 1002 80 4 1003 60...
- 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]
Sachy123
Helper V
6 years agoThanks! 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..
Ashish_Mathur
Super User
6 years agoHi,
That does not look like a Date format. In the Query Editor, ensure that you set the format of that column to Date.