Forum Discussion
AndreiFlorian
6 years agoFrequent Visitor
Find Latest Value from Array
Hi there, I am aware that there are other threads to do with this issue and I have looked over them though I did not manage to make the project work. I have an array called batteryVoltage which stor...
- 6 years ago
Hmm, I am guessing that the last row of data doesn't have a reading. Can you try changing the mesure to this?
Last Battery = VAR _MaxTime = CALCULATE ( MAX ( 'SensoEvents'[TimeStamp] ), KEEPFILTERS ( ALL ( 'SensoEvents'[TimeStamp] ) ) ) RETURN CALCULATE ( SUM ( 'SensoEvent'[Battery] ), 'SensoEvents'[TimeStamp] = _MaxTime )See if keeping the other filters lets us get a result.
AndreiFlorian
6 years agoFrequent Visitor
Yes, that is the error I’m getting. Could it be because of the sample not being present? I can see the data on a table though. I have posted the content of the error in the previous post
jdbuchanan71
6 years agoSuper User
My screen shot was just an example of what I was asking for and the error I showed is different than the one you said you were getting.
Parameter is not the correct type Cannot find name '[Timestamp]'
I wanted a screen shot of your screen, including the measure and the tables with the error you get showing. Since I cannot open your model I don't know if you have a table name wrong or a field name wrong or what.