Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

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.

Reply
davidprograma
Regular Visitor

suma de medida

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:

SERVICIOTAGDIATOTALIZADO DIARIO PRINCIPAL1TOTAL DIA CONSUMIDOULTIMA FECHA PRINCIPALES3
AguaFIT060028198.78198.7828/03/2022 23:59
AguaFIT060029314.06314.0629/03/2022 23:59
AguaFIT060030313.15313.1530/03/2022 23:58
AguaFIT060031291.81291.8131/03/2022 23:59
AguaFIT061328124.19124.1928/03/2022 23:59
AguaFIT061329220.99220.9929/03/2022 23:58
AguaFIT061330217.18217.1830/03/2022 23:59
AguaFIT061331214.05214.0531/03/2022 23:59
TOTAL  314.061256.2431/03/2022 23:59

deberia mostrar 1894.21 no 1256.24

me podrian ayudar a saber porque no realiza la suma?

 

 

 

 

 

2 ACCEPTED SOLUTIONS

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.

View solution in original post

davidprograma
Regular Visitor

si funciono con esta solucion mucas gracias por el apoyo 

View solution in original post

5 REPLIES 5
davidprograma
Regular Visitor

si funciono con esta solucion mucas gracias por el apoyo 

Icey
Community Support
Community Support

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: 

SERVICIOTAGDIATOTALIZADO DIARIO PRINCIPAL1TOTA DIA CONSUMIDOULTIMA FECHA PRINCIPALES3
AguaFIT060028198.781117.828/03/2022 23:59
AguaFIT060029314.061117.829/03/2022 23:59
AguaFIT060030313.151117.830/03/2022 23:58
AguaFIT060031291.811117.831/03/2022 23:59
AguaFIT061328124.19776.4128/03/2022 23:59
AguaFIT061329220.99776.4129/03/2022 23:58
AguaFIT061330217.18776.4130/03/2022 23:59
AguaFIT061331214.05776.4131/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

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.