Forum Discussion
Problem with getting the previus value when using time
- 2 years ago
Some of your timestamps contain fractions of seconds. Force the Tid column to drop these fractions.
Also please don't use LOOKUPVALUE for that. Use a proper function like OFFSET.
- Anonymous2 years ago
Hi lbendlin ,thanks for the quick reply, I'll add further.
Hi Anonymous ,
The Table data is shown below:
Use the following DAX expression to create a measure
Measure = CALCULATE(MAX('Table'[Value]),OFFSET(-1,ALLSELECTED('Table'[Value]),ORDERBY('Table'[Value],ASC)))Final output
HI lbendlin
It would be great if you could show an example when using OFFSET.
In documents it looks like the OFFSET works best in a MEASURE. Is that correct?
Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).
Do not include sensitive information or anything not related to the issue or question.
If you are unsure how to upload data please refer to https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216
Please show the expected outcome based on the sample data you provided.
Want faster answers? https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523