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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
sanvass72
New Member

Sumar Columna resultado de una medida.

Hola: les comento que tengo una tabla donde obtengo una columna  IMPORTE (medida), otra columna FACTURACION SIMULADA ANTERIOR (medida) y otra columna IMPACTO MIX (medida) que es la diferencia entre las 2 anteriores.

El problema es que no se como mostrar los totales sumando los valores la columna.

sanvass72_0-1657114044916.png

 

 

1 ACCEPTED SOLUTION
v-zhangti
Community Support
Community Support

Hi, @sanvass72 

 

I've simulated some data that I hope fits your situation. The function IF(HASONEVALUE()), can control the output of Total.

Difference = 
IF (
    HASONEVALUE ( 'Table'[Date] ),
    [Previous Amount] - [Amount],
    SUMX (
        SUMMARIZE ( 'Table', 'Table'[Date], "Difference", [Previous Amount] - [Amount] ),
        [Difference]
    )
)

vzhangti_0-1657521454458.png

You can try this formula and see if it outputs the results you expect. If it still does not work out, please provide more example data.

 

Best Regards,

Community Support Team _Charlotte

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

1 REPLY 1
v-zhangti
Community Support
Community Support

Hi, @sanvass72 

 

I've simulated some data that I hope fits your situation. The function IF(HASONEVALUE()), can control the output of Total.

Difference = 
IF (
    HASONEVALUE ( 'Table'[Date] ),
    [Previous Amount] - [Amount],
    SUMX (
        SUMMARIZE ( 'Table', 'Table'[Date], "Difference", [Previous Amount] - [Amount] ),
        [Difference]
    )
)

vzhangti_0-1657521454458.png

You can try this formula and see if it outputs the results you expect. If it still does not work out, please provide more example data.

 

Best Regards,

Community Support Team _Charlotte

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.