Forum Discussion
ssspk
2 years agoHelper III
Previous rows value based on date (Nested Window Function from Azure DatbricksSQL in Power BI logic)
Hi, How to achieve the values from previous row in Power BI (which means nested window functionality in Azure databricks). I can exectre the query and display the results in Azure databricks. I wou...
- 2 years ago
Created a mew measure for the colum and used the Fn like below. Its working,
RunningTotal = CALCULATE (SUM ( [EventsCount] ),ALL ( data_customized ),data_customized[servertime] <= EARLIER (data_customized[servertime]))Thank you.
tharunkumarRTK
2 years agoSuper User
Hi
You are creating a caculated column, I gave an example syntax for measure.
Also, while writing the measure I assumed that you have a measure called EventsCount
if that is not the case then please create the measure first.
ssspk
2 years agoHelper III
HI,
Tharun Thank you for your reply and time. I am a new bee to the topic.
yes its a calculated column.
For new colum i have used like below,
= Table.AddColumn(#"Renamed Columns", "RunningTotal", each CALCULATE([EventsCount], Filter(Allselected(data_customized) , Table[servertime] <=Max(Table[servertime]) )))
Atached images for your reference,
Thank you.