This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
Hola, en mi PowerBi tengo una tabla de Facturas unida a la tabla calendario de 1 a * a través de fechafactura.
Esta es la visual que necesito; actualmente estoy filtrando por el año actua, es decir 2024.
Estoy teniendo problemas para calcular la suma correcta de una medida.
La medida [NW FACT LY] es simplemente la suma de facturación.
la medida [AJUSTE LY...] es lo mismo pero ajustando el valor final de CL, ya que al total de CL para cada año tengo que sumar o restar un ajuste.
Y lo que necesito en última instancia es sumar el valor correcto de los valores que arroja esa medida, pero me hace desaparecer la 2 y penultima línea.
SUMX LY AJUSTE FACTURACION =
SUMX(
VALUES('Facturas Anexo'[TipoLiquidacion]),
CALCULATE(
[AJUSTE LY FACTURACIÓN FINAL]
)
)
Por favor, necesito ayuda, hay algo que no estoy entendiendo.
Hi @afrutos ,
Could you please provide some sample data or link to the pbix file?
Best regards,
Mengmeng Li
Hi @afrutos ,
Although this does not directly address your requirement, hardcoding values directly into DAX measures is not good practice. It can lead to several problems, such as a lack of flexibility, high maintenance needs, increased error-proneness, and difficulty in auditing. A better approach would be to store those adjustment values in a separate lookup table and reference them dynamically. This makes your model easier to maintain, more scalable, less prone to errors, and easier to audit.
Best regards,
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 36 | |
| 33 | |
| 31 | |
| 24 | |
| 18 |
| User | Count |
|---|---|
| 66 | |
| 50 | |
| 33 | |
| 24 | |
| 24 |