Forum Discussion
How to get row to row difference by Group/sort
maybe you can try to create a measure
Measure =
VAR arrive=max('Table'[PreStopperArrival_C])
VAR Previous=MAXX(FILTER(all('Table'),'Table'[ModulNr]=max('Table'[ModulNr])&&'Table'[StationsNr]=max('Table'[StationsNr])&&'Table'[PreStopperArrival_C]<arrive),'Table'[PreStopperArrival_C])
return if(ISBLANK(Previous),BLANK(),SECOND(arrive-Previous))
Hello ryan_mayu thanks a lot. Its working perfectly. But I need to plot Barchart. X axis will have Concatenated Module Station Nr and Y axis i have to consider Avergae Carriertime.
Carriertime(Measure) = Above calculated field minus(-) Prestoparrdiff
- ryan_mayu5 years ago
Super User
I keep working on the previous sample data. you can try to create a measure
average = averagex(CTM_Timestamps,[Carriertime])please see the attachment below
- harshagraj5 years ago
Post Partisan
Hello ryan_mayu thanks a lot for the help. I just exactly did the same steps. But I am getting below error. My data size is huge actually. Every 5 seconds i get 8 records for different modules and from diff stations
- ryan_mayu5 years ago
Super User
I seldom us direct query. can pbi display the bottom left table on your end? That table contains the same fields and measures as the chart.