Forum Discussion
Create an MTBF Measure that summarises Machine Types by Brand
- 2 years ago
Hy CMoppet . Just do like that. It should must work. you can check this file for your reference.
MTBFbyBrand =DIVIDE(SUM(BaseSummary[OperationalWeeks]),SUM(BaseSummary[ALL Repairs]))
CMoppet Place Machine Brand into a Table visualization. Then create this measure and also place it into the table visualization.
Measure = DIVIDE( SUM( 'Table'[OperationalWeeks] ), SUM( 'Table'[ALL Repairs] ) )
Also, you might find this helpful. 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.
The basic pattern is:
Column =
VAR __Current = [Value]
VAR __PreviousDate = MAXX(FILTER('Table','Table'[Date] < EARLIER('Table'[Date])),[Date])
VAR __Previous = MAXX(FILTER('Table',[Date]=__PreviousDate),[Value])
RETURN
( __Current - __Previous ) * 1.
Greg_Deckler Appreciate you helping 🙂
I've done the above but it gives me a blank table as soon as I add the new measure.:
The Operational Weeks is this measure:
- muhammad_786_12 years ago
Solution Supplier
Hy CMoppet . Just do like that. It should must work. you can check this file for your reference.
MTBFbyBrand =DIVIDE(SUM(BaseSummary[OperationalWeeks]),SUM(BaseSummary[ALL Repairs])) - Greg_Deckler2 years ago
Community Champion
CMoppet OK, so what do your actual data tables look like? There is likely a problem with relationships or something else. I was assuming that what you showed in your image was the actual source data table but I see that is not the case given the DAX you shared.
Sorry, having trouble following, can you post sample data as text and expected output?
Not really enough information to go on, please first check if your issue is a common issue listed here: https://community.powerbi.com/t5/Community-Blog/Before-You-Post-Read-This/ba-p/1116882
Also, 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.