Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreGet 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
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.
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
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
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:
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.
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.
Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.
User | Count |
---|---|
94 | |
92 | |
82 | |
71 | |
49 |
User | Count |
---|---|
143 | |
121 | |
111 | |
59 | |
57 |