Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
buen dia me gustaria su apoyo para obtener la suma del totalizado de la tabla:
cuento con las columnas:
servicio, tag, acumulado, fecha, dia
cree un media : TOTALIZADO DIARIO PRINCIPAL1 el cual muestra el valor mas grade de consumo de mi columna acumulado
al crear la tabla y aplicar filtros muestra los datos correctos haora deseo sumar todos los valores con otra medida
TOTAL DIA CONSUMO: var x= [TOTALIZADO DIARIO PRINCIPAL1]
return
sumx(valuestabla1[dia],x)
(la cual si muestra los valores pero el resultado es incorecto: pero no realiza la suma:
SERVICIO | TAG | DIA | TOTALIZADO DIARIO PRINCIPAL1 | TOTAL DIA CONSUMIDO | ULTIMA FECHA PRINCIPALES3 |
Agua | FIT0600 | 28 | 198.78 | 198.78 | 28/03/2022 23:59 |
Agua | FIT0600 | 29 | 314.06 | 314.06 | 29/03/2022 23:59 |
Agua | FIT0600 | 30 | 313.15 | 313.15 | 30/03/2022 23:58 |
Agua | FIT0600 | 31 | 291.81 | 291.81 | 31/03/2022 23:59 |
Agua | FIT0613 | 28 | 124.19 | 124.19 | 28/03/2022 23:59 |
Agua | FIT0613 | 29 | 220.99 | 220.99 | 29/03/2022 23:58 |
Agua | FIT0613 | 30 | 217.18 | 217.18 | 30/03/2022 23:59 |
Agua | FIT0613 | 31 | 214.05 | 214.05 | 31/03/2022 23:59 |
TOTAL | 314.06 | 1256.24 | 31/03/2022 23:59 |
deberia mostrar 1894.21 no 1256.24
me podrian ayudar a saber porque no realiza la suma?
Solved! Go to Solution.
Hi @davidprograma ,
This may work:
TOTAL DIA CONSUMO =
VAR t_ =
ADDCOLUMNS (
SUMMARIZE ( ALLSELECTED ( tabla1 ), [SERVICIO], [TAG], [DIA] ),
"TOTALIZADO DIARIO PRINCIPAL1_", [TOTALIZADO DIARIO PRINCIPAL1]
)
RETURN
SUMX ( t_, [TOTALIZADO DIARIO PRINCIPAL1_] )
Best Regards,
Icey
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
si funciono con esta solucion mucas gracias por el apoyo
si funciono con esta solucion mucas gracias por el apoyo
Hi @davidprograma ,
How about this?
TOTAL DIA CONSUMO =
SUMX ( ALLSELECTED ( tabla1[dia] ), [TOTALIZADO DIARIO PRINCIPAL1] )
Best Regards,
Icey
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
no funciono y me arrojo otros datos:
SERVICIO | TAG | DIA | TOTALIZADO DIARIO PRINCIPAL1 | TOTA DIA CONSUMIDO | ULTIMA FECHA PRINCIPALES3 |
Agua | FIT0600 | 28 | 198.78 | 1117.8 | 28/03/2022 23:59 |
Agua | FIT0600 | 29 | 314.06 | 1117.8 | 29/03/2022 23:59 |
Agua | FIT0600 | 30 | 313.15 | 1117.8 | 30/03/2022 23:58 |
Agua | FIT0600 | 31 | 291.81 | 1117.8 | 31/03/2022 23:59 |
Agua | FIT0613 | 28 | 124.19 | 776.41 | 28/03/2022 23:59 |
Agua | FIT0613 | 29 | 220.99 | 776.41 | 29/03/2022 23:58 |
Agua | FIT0613 | 30 | 217.18 | 776.41 | 30/03/2022 23:59 |
Agua | FIT0613 | 31 | 214.05 | 776.41 | 31/03/2022 23:59 |
Hi @davidprograma ,
This may work:
TOTAL DIA CONSUMO =
VAR t_ =
ADDCOLUMNS (
SUMMARIZE ( ALLSELECTED ( tabla1 ), [SERVICIO], [TAG], [DIA] ),
"TOTALIZADO DIARIO PRINCIPAL1_", [TOTALIZADO DIARIO PRINCIPAL1]
)
RETURN
SUMX ( t_, [TOTALIZADO DIARIO PRINCIPAL1_] )
Best Regards,
Icey
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
me explico con la medida-> TOTALIZADO DIARIO PRINCIPAL1 obtengo de la columnan acumulado el valor mas alto con respecto a cada dia transcurido y es el valor que muestro en la tabla y solo quiero sumar esos datos por medio de otra medida
User | Count |
---|---|
10 | |
10 | |
3 | |
2 | |
1 |