Forum Discussion
Calculating time difference between rows with slicers
- 6 years ago
It looks like it is correctly calculating the difference between rows (regardless of the Process). If you'd like to keep the Process in context, you need to add VALUES('Main Table'[Process]) to your Calculate().
If this works for you, please mark it as solution. Kudos are appreciated too. Please let me know if not.
Regards,
Pat
I would start by dropping your ALLSELECTED and not using CALCULATE.
See my article on Mean Time Between Failure (MTBF) which uses EARLIER: http://community.powerbi.com/t5/Community-Blog/Mean-Time-Between-Failure-MTBF-and-Power-BI/ba-p/339586
I have a great version of that in my book, DAX Cookbook. If you can post sample data, I'll try to adapt it for your situation. Please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490
The most important parts are:
1. Sample data as text, use the table tool in the editing bar
2. Expected output from sample data
3. Explanation in words of how to get from 1. to 2.