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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

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
Advocate III
Advocate III

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
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

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! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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