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 dos medidas, pero la segunda devuelve un total equivocado. Agregué AddColumns para optimizar la consulta. Cualquier sugerencia sería genial. ¡Gracias!
CALCULATETABLE(
SUMMARIZE('PHA', 'PHA'[CNSR_INDV_ID],
"_BIOM",0,"_PHA",0,"_GOAL",0,
"_CTC",SUMX(values('0630 PHA'[ENRL_DATE]),MAX([CTC]))), KEEPFILTERS(('PHA'[ENRL_DATE]>= Min_Date && 'PHA'[GP_NB]=_gpnb && 'PHA'[ENRL_DATE]<= Max_Date) && 'PHA'[CTC] > 0)))
CALCULATETABLE(
ADDCOLUMNS(SUMMARIZE('PHA', '0PHA'[CNSR_INDV_ID]),
"_BIOM", 0,
"_PHA",0,
"_CTC",CALCULATE(SUMX(values('0630 BIOMPHA'[ENRL_DATE]),MAX('PHA'[CTC]))),
FILTER('PHA',([ENRL_DATE]>= Min_Date && [ENRL_DATE]<= Max_Date) && [GP_NB]=_gpnb
&& [CTC] >0)))))
Tengo un pequeño truco para ayudarte a ver las tablas actuales creadas por resumir.
test =
VAR _s =
SUMMARIZE (
'table',
[column1],
[column2],
"newcolumn1", [measure1],
"newcolumn2", [measure2]
)
RETURN
CONCATENATEX (
_s,
[column1] & " " & [column2] & " " & [newcolumn1] & " " & [newcolumn2],
"
"// here please enter "alt+enter" as
)
Si necesita más ayuda, comparta su pbix sin datos confidenciales.
Saludos
Equipo de apoyo a la comunidad _ chenwu zhu
Si esta publicación ayuda, considere Aceptarla como la solución para ayudar a los otros miembros a encontrarla más rápidamente.
@NilR , mueva el filtro dentro de la medida y verifique
CALCULABLE(
ADDCOLUMNS(SUMMARIZE('PHA', '0PHA'[CNSR_INDV_ID]),
"_BIOM", 0,
"_PHA",0,
"_CTC",CALCULATE(SUMX(values('0630 BIOMPHA'[ENRL_DATE]),MAX('PHA'[CTC]),
FILTER('PHA',([ENRL_DATE]>= Min_Date && [ENRL_DATE]<= Max_Date) && [GP_NB]=_gpnb
&& [CTC] >0))) ) )
😫😭Todavía no funciona 😞 ¡Muchas gracias! ¿Alguna otra recomendación?
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 |