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, I'm trying to do something like this
When the identification matches, it brings the water level from the previous date and also in another column it makes the difference between the current water level and the previous water level.
I think it's something with the previous function and the filter, but I could not make it work
Any ideas?
Thank you!
Solved! Go to Solution.
Hi @Anonymous,
Based on my test, you could refer to below steps:
Sample data:
Create below calculated columns:
Index = RANKX('Table1','Table1'[Date],,ASC,Dense)
previous number = var a=[Index]-1 return CALCULATE(SUM(Table1[Number]),FILTER('Table1','Table1'[Index]=a))
Difference = IF(ISBLANK('Table1'[previous number]),BLANK(),[Number]-[previous number])
Result:
You could also download the pbix file to have a view.
Regards,
Daniel He
Hi @Anonymous,
Could you please tell me if your problem has been solved? If it is, could you please mark the helpful replies as Answered to close this topic?
Regards,
Daniel He
Hi @Anonymous,
Based on my test, you could refer to below steps:
Sample data:
Create below calculated columns:
Index = RANKX('Table1','Table1'[Date],,ASC,Dense)
previous number = var a=[Index]-1 return CALCULATE(SUM(Table1[Number]),FILTER('Table1','Table1'[Index]=a))
Difference = IF(ISBLANK('Table1'[previous number]),BLANK(),[Number]-[previous number])
Result:
You could also download the pbix file to have a view.
Regards,
Daniel He
You want EARLIER. See my article on Mean Time Before Failure (MTBF) which uses EARLIER: http://community.powerbi.com/t5/Community-Blog/Mean-Time-Between-Failure-MTBF-and-Power-BI/ba-p/3395...
You want EARLIER. See my article on Mean Time Before Failure (MTBF) which uses EARLIER: http://community.powerbi.com/t5/Community-Blog/Mean-Time-Between-Failure-MTBF-and-Power-BI/ba-p/3395...
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 |
---|---|
113 | |
103 | |
77 | |
66 | |
63 |
User | Count |
---|---|
142 | |
105 | |
102 | |
81 | |
68 |