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.
Tengo una columna relacionada con la fabricación "Estado" que tiene los valores "Completado", "Descanso de la máquina", "Mantenimiento", etc., necesito crear una medida que da el % total completado.
Si hay 10 filas y el campo Estado es "Completado" para alrededor de 7 filas, entonces mi medida debe ser 70%.
¿Cómo hacer esto? Por favor, ayuda
Solved! Go to Solution.
@SabariPrabu , Pruebe nuevas medidas como
Sobre todo el % completado ?
divide(calculate(countrows(Table), Table[Status] á"Completed"), calculate(countrows(Table)))
cuando se ve por estado
Status % - divide(calculate(countrows(Table)), calculate(countrows(Table), all(Table)))
@SabariPrabu , Pruebe nuevas medidas como
Sobre todo el % completado ?
divide(calculate(countrows(Table), Table[Status] á"Completed"), calculate(countrows(Table)))
cuando se ve por estado
Status % - divide(calculate(countrows(Table)), calculate(countrows(Table), all(Table)))
@SabariPrabu Los datos de ejemplo lo harían más fácil. En teoría:
Measure =
VAR __Machine = MAX([Machine])
VAR __Completed = COUNTROWS(FILTER(ALL('Table'),[Machine]=__Machine && [Status]="Completed"))
VAR __All = COUNTROWS(FILTER(ALL('Table'),[Machine]=__Machine))
RETURN
DIVIDE(__Completed,__All,0)
También puede estar interesado en MTBF - Ver mi artículo sobre el tiempo medio entre el fracaso (MTBF) que utiliza ANTES: http://community.powerbi.com/t5/Community-Blog/Mean-Time-Between-Failure-MTBF-and-Power-BI/ba-p/3395....
El patrón básico es:
Columna ?
VAR __Current á [Valor]
VAR __PreviousDate á MAXX(FILTER('Table','Table'[Date] < EARLIER('Table'[Date])),[Date])
VAR __Previous á MAXX(FILTER('Table',[Fecha]-__PreviousDate),[Valor])
devolución
__Current - __Previous
@SabariPrabu - Eso fue para una medida para averiguar con qué máquina está tratando. ¿Se supone que es una columna?
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 |
---|---|
2 | |
2 | |
2 | |
2 | |
1 |