We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now
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,
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 57 | |
| 38 | |
| 32 | |
| 18 | |
| 16 |
| User | Count |
|---|---|
| 66 | |
| 66 | |
| 40 | |
| 34 | |
| 25 |