Supplies are limited. Contact info@espc.tech right away to save your spot before the conference sells out.
Get your discountScore big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount
Hi,
I have streaming dataset. Requirement is to show live data. To perfrom some calculations I connect this dataset to powerbi Desktop and adding measures as per need. Now I am trying to create a measure which will give me perivous value of datetime. I want time diffrence of two entity. Please check below image.
In this case I want new column with perivous datetime. I want to calculate time diffrence of non Blank ESN value to next stopper_down_time_Stamp.
I tried one measure-
CALCULATE(index(-2,ALLSELECTED('live-table'[HosurDateTime]),ORDERBY('live-table'[HosurDateTime],ASC)),KEEPFILTERS('live-table'))
But this is giving me only one value for latest record. not complete column values.
Please help me out.
Thanks.
Solved! Go to Solution.
Hi, @BN_04
Use offset function instead of index function
Because Index only give static value and offset give daynamic value.
add column which give you previous value
create mesure of difference bw two dates
Hi, @BN_04
Use offset function instead of index function
Because Index only give static value and offset give daynamic value.
add column which give you previous value
create mesure of difference bw two dates
User | Count |
---|---|
12 | |
11 | |
8 | |
7 | |
6 |
User | Count |
---|---|
25 | |
19 | |
14 | |
10 | |
7 |