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, chicos
Tengo una mesa que se ve así:
Identificador del grupo de informes | Método de inversión | Clave de fecha | Valor |
1 | Interna | 20200101 | 50 |
1 | Externos | 20200101 | 100 |
1 | Interna | 20200201 | 100 |
1 | Externos | 20200201 | 20 |
1 | Interna | 20200301 | 500 |
2 | Interna | 20200101 | 500 |
2 | Externos | 20200101 | 200 |
2 | Interna | 20200201 | 300 |
2 | Externos | 20200201 | 50 |
3 | Interna | 20200101 | 400 |
3 | Externos | 20200101 | 200 |
3 | Interna | 20200201 | 100 |
3 | Externos | 20200201 | 300 |
Necesito crear una tabla verani estandarizada que me proporcione solo el método de inversión del grupo de informes para cada clave de fecha en función del valor máximo de cada fecha. Así que los resultados deberían tener este aspecto:
Identificador del grupo de informes | Método de inversión | Clave de fecha | Valor |
1 | Externos | 20200101 | 100 |
1 | Interna | 20200201 | 100 |
1 | Interna | 20200301 | 500 |
2 | Interna | 20200101 | 500 |
2 | Interna | 20200201 | 300 |
3 | Interna | 20200101 | 400 |
3 | Externos | 20200201 | 300 |
Estoy un poco atascado.
Solved! Go to Solution.
Hola @GlynMThomas
Puede crear una tabla de resumen para mostrar el valor máximo para cada ID y clave de fecha por función de resumen.
Summarize Table =
SUMMARIZE (
FILTER (
'Table',
'Table'[Reporting Group Id ] = 'Table'[Reporting Group Id ]
&& 'Table'[Date Key] = 'Table'[Date Key]
&& 'Table'[Value]
= MAXX (
FILTER (
'Table',
'Table'[Reporting Group Id ] = EARLIER ( 'Table'[Reporting Group Id ] )
&& 'Table'[Date Key] = EARLIER ( 'Table'[Date Key] )
),
'Table'[Value]
)
),
'Table'[Reporting Group Id ],
'Table'[Investment Method ],
'Table'[Date Key],
'Table'[Value]
)
El resultado es el siguiente.
Puede descargar el archivo pbix desde este enlace: Max group by id and date key
Saludos
Rico Zhou
Si este post ayuda,entonces considere Aceptarlo como la solución para ayudar a los otros miembros a encontrarlo más rápidamente.
Hola @GlynMThomas
Puede crear una tabla de resumen para mostrar el valor máximo para cada ID y clave de fecha por función de resumen.
Summarize Table =
SUMMARIZE (
FILTER (
'Table',
'Table'[Reporting Group Id ] = 'Table'[Reporting Group Id ]
&& 'Table'[Date Key] = 'Table'[Date Key]
&& 'Table'[Value]
= MAXX (
FILTER (
'Table',
'Table'[Reporting Group Id ] = EARLIER ( 'Table'[Reporting Group Id ] )
&& 'Table'[Date Key] = EARLIER ( 'Table'[Date Key] )
),
'Table'[Value]
)
),
'Table'[Reporting Group Id ],
'Table'[Investment Method ],
'Table'[Date Key],
'Table'[Value]
)
El resultado es el siguiente.
Puede descargar el archivo pbix desde este enlace: Max group by id and date key
Saludos
Rico Zhou
Si este post ayuda,entonces considere Aceptarlo como la solución para ayudar a los otros miembros a encontrarlo más rápidamente.
Pruebe esta medida:
Max Value =
VAR vReportingGroup =
MAX ( GroupTest[Reporting Group Id] )
VAR vDateKey =
MAX ( GroupTest[Date Key] )
VAR vMaxValue =
CALCULATE (
MAX ( GroupTest[Value] ),
FILTER (
ALL ( GroupTest ),
GroupTest[Reporting Group Id] = vReportingGroup
&& GroupTest[Date Key] = vDateKey
)
)
VAR vResult =
IF ( MAX ( GroupTest[Value] ) = vMaxValue, vMaxValue, BLANK () )
RETURN
vResult
Proud to be a Super User!
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 | |
2 | |
1 |