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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
vicga2611
Regular Visitor

Wrong total sum in a table power desktop

Hi community,

Help solve this issue,

I am using this dax to bring "shoppers" projection with another "days of work" calculation. But the total of the "projection" column is wrong. All columns are messuare.

 

Proyeccion =

SWITCH(

    TRUE(),

    SELECTEDVALUE('03 SucursalesCECO [Excel]'[NOMBRE Sucursal]) = "SHOPPERS",

 [Venta Total [₡]]] + DIVIDE([Venta Total [₡]]], [Cantidad de dias Transcurridos Condicional]) * [Dias Restantes Condicionales]),

            [Venta Total [₡]]] + DIVIDE([Venta Total [₡]]] ,[Cantidad de dias Trancurridos]) *  [Dias Restantes del Mes])

 

Wrong total issue.jpg

1 ACCEPTED SOLUTION
bhanu_gautam
Super User
Super User

@vicga2611 Try using

dax
Proyeccion Total =
SUMX(
'03 SucursalesCECO [Excel]',
SWITCH(
TRUE(),
'03 SucursalesCECO [Excel]'[NOMBRE Sucursal] = "SHOPPERS",
[Venta Total [₡]] + DIVIDE([Venta Total [₡]], [Cantidad de dias Transcurridos Condicional]) * [Dias Restantes Condicionales],
[Venta Total [₡]] + DIVIDE([Venta Total [₡]], [Cantidad de dias Trancurridos]) * [Dias Restantes del Mes]
)
)




Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






View solution in original post

1 REPLY 1
bhanu_gautam
Super User
Super User

@vicga2611 Try using

dax
Proyeccion Total =
SUMX(
'03 SucursalesCECO [Excel]',
SWITCH(
TRUE(),
'03 SucursalesCECO [Excel]'[NOMBRE Sucursal] = "SHOPPERS",
[Venta Total [₡]] + DIVIDE([Venta Total [₡]], [Cantidad de dias Transcurridos Condicional]) * [Dias Restantes Condicionales],
[Venta Total [₡]] + DIVIDE([Venta Total [₡]], [Cantidad de dias Trancurridos]) * [Dias Restantes del Mes]
)
)




Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors