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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
paumeneses24
New Member

Problemas con total en Power Bi

Problemas con formula en Power BI.
Realice una nueva medida con formula DAX simple en el cual necesito que que me tome el 10% en referencia a una columna en la cual existan saldos negativos, la cual se realiza con formula.

El tema que en el informe si me muesta como corresponden los montos que quiero ver, pero el total de la columna no me cuadra con los montos correspondiente como muestro a continuación.

paumeneses24_0-1727372522951.png

La columna en cuestion es "Descuento filtro 10%", el total de esta corresponde a "608.493.255", como se en la sumatoria me da el mismo monto correspondiente a la "retención 10%"

Formula ocupada es 

Descuento filtro 10% = IF([Saldo G.F.]<0 , 0 ,  sum('Ingresos SEP'[Ingresos])* 0.1)
 
Que puedo hacer

 

3 REPLIES 3
v-linhuizh-msft
Community Support
Community Support

Hi @paumeneses24 ,

 

Have you solved your problem? If it is solved, please share your solution and accept it as solution or mark the helpful replies, it will be helpful for other members of the community who have similar problems as yours to solve it faster. Thank you very much for your kind cooperation!

 

Best Regards,
Zhu

v-linhuizh-msft
Community Support
Community Support

Thanks for the reply from edchuy.

 

Hi @paumeneses24 ,

 

According to your problem description, it is a common phenomenon to have problems with total rows, when it is because in the total rows, the summation has already been done without performing IF condition judgment. As edchuy said, we can use SUMX, it will iterate through each row.


Here are my test results: 

 

Descuento filtro 10% = SUMX('Table',IF('Table'[Saldo G.F.]<0,0,'Table'[Ingresos]*0.1))

 

 

The measure deserves the right result:

vlinhuizhmsft_0-1727682802477.png

Best Regards,
Zhu
Community Support Team

 

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

edchuy
Helper V
Helper V

Veo que tu medida Descuento filtro 10% funciona correctamente en cada fila de tu tabla, inclusive la que corresponde a Total, por lo que el problema es la fórmula que usaste. Si no estoy mal, creo que deberías usar la función SUMX. Para poder ayudarte más, necesitaría saber como está definida tu medida Saldo G.F.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Feb2025 NL Carousel

Fabric Community Update - February 2025

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