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.
Hola a todos
Tengo un esquema en el que varias tablas están conectadas y tengo una tabla de medidas en estas tablas. La tabla de claves de este esquema es una tabla de órdenes de trabajo (WOs) que tiene una lista de fechas en las que se enumeran las órdenes de trabajo.
Ahora he generado una tabla de fechas de inicio y finalización. Quiero volver a calcular una medida para estas fechas como max y min filtrando la tabla WOs.
Probé esto usando la siguiente fórmula, pero no obtuve ningún resultado (Sólo en blanco):
Solved! Go to Solution.
I found the perfect solution for this issue. Here are 2 measures I wrote to arrive at the answer:
measure 1:
¿Estás buscando una consulta como esta?
CALCULATE(
CALCULATE([Sistema general Availability_product],DATESBETWEEN(WOs[REPORTDATE+Time], MAX('Table'[Start]),MAX('Table'[End])),ALLSELECTED('Table'))
,ALL('Test Freq + Config'[GRUPO SECE]), ALL(Measures_Table))
Creo que esto dará un re-cálculo para min y max para las 2 columnas. Esperaba obtener un valor para cada fila. Espero que esto tenga sentido. Gracias. Disculpas
@vslaser, no muy claro.
¿Puede compartir datos de ejemplo y salida de ejemplo en formato de tabla? O una muestra de pbix después de eliminar datos confidenciales.
@Amit, can you please send me a contact method? I am unable to upload the pbix file here. What I want to do is to generate a trend with the value re-calculated for each date range in the rows of this table. At the moment, it is not taking into consideration the start and end dates in the table which is why the value remains unchanged in the rows
Hi @amitchandak ,
Please find the file at the below link:
https://drive.google.com/file/d/17ma0SUX4Kx9X9AGwSyXq2VLX39C_H7Ev/view?usp=sharing
Any help would be deeply appreciated.
Thanks,
Vijay
Hola
Por favor, comparta el resultado exacto que está esperando.
@vslaser Usa esta fórmula y supongo que funciona según tus necesidades
Calculated = calculate([Overall System Availability_product],DATESBETWEEN(Measures_Table[Date], MAX('Table'[Start]),MAX('Table'[End])),ALLSELECTED(WOs),ALL('Test Freq + Config'[SECE Group]))
No estoy seguro de por qué ha utilizado "ALLSELECTED(WOs)" pero lo mantuve como está. Y como se mencionó anteriormente DATESBETWEEN le ayudará a filtrar filas por fechas dadas
Si este post ayuda, por favor considere Aceptarlo como la solución para ayudar a los otros miembros a encontrarlo más rápidamente.
¡Salud!
@vslaser escribió:Hola @amitchandak ,
Por favor, encuentre el archivo en el siguiente enlace:
https://drive.google.com/file/d/17ma0SUX4Kx9X9AGwSyXq2VLX39C_H7Ev/view?usp=sharing
Cualquier ayuda sería muy apreciada.
Gracias
Vijay
@amitjzaveri , the solution you provided is only working for 1 of the SECEs and not for others and the values dont seem to be for all the ones in table columns 😞
Hi all,
I used the below formula and am getting a value for each of the rows in the 'Table' table. These values however are still wrong.
I found the perfect solution for this issue. Here are 2 measures I wrote to arrive at the answer:
measure 1:
Thanks @amitchandak ,
I tried the solution you gave me but it looks like it now does not change with the selection of SECE group in the page. The same result is displayed for all SECE groups 😞
@Ashish_Mathur : The result I expected was:
recalculated values of the verall availability for the given dates for the selected SECE group. Unfortunately, I am unable to calculate them here because even with the help @amitchandak provided, the result is not specific to the SECE group. 😞
Regards,
Vijay
Gracias Amit. Compartiré una muestra
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 | |
1 | |
1 | |
1 | |
1 |
User | Count |
---|---|
2 | |
2 | |
2 | |
1 | |
1 |