Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
hi all..
perhaps it a silly question but do i get the previous value of a column?
i tried lookup value & earlier but got lost in them.any help.
thank you.
Solved! Go to Solution.
Hey @Anonymous ,
Take this as solution,
you may need a spporting column or Index for this
supporting col = RANKX('Table',[DIGITS],,ASC)
Then, you calculate previous value by that supporting col..
@Anonymous
smth like that
Diff = if(isblank([Previous]); BLANK(); [digits]-[previous])
do not hesitate to give a kudo to useful posts and mark solutions as solution
Hey @Anonymous ,
Take this as solution,
you may need a spporting column or Index for this
supporting col = RANKX('Table',[DIGITS],,ASC)
Then, you calculate previous value by that supporting col..
Hi @Anonymous
if your data is so simple you could try a column
Column = calculate(LASTNONBLANK(Query[Digits];1);filter(all(Query);Query[Digits]<EARLIER(Query[Digits])))
do not hesitate to give a kudo to useful posts and mark solutions as solution
Thanks, both methods works for me...
1 more question, as i used the previous value to calculate the difference.
my chart (using the diff column) will show as follow.
is there a way not to show the first value..in this case, would be the value 110 in column "Diff"
@Anonymous
smth like that
Diff = if(isblank([Previous]); BLANK(); [digits]-[previous])
do not hesitate to give a kudo to useful posts and mark solutions as solution
Hey @Anonymous
Re create your Diff Col.
if(ISBLANK(Prev),Blank(),Diff)
then go tho the visual level filter and deselect the blank from the diff .
Hope it will helps,
Regards,
Snandy
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
114 | |
99 | |
83 | |
70 | |
60 |
User | Count |
---|---|
149 | |
114 | |
107 | |
89 | |
67 |