Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Tengo la siguiente medida que me funciona bien al segmentar 1 año (ejemplo 2022), pero al segmentar 2 años (ejemplo 2022, 2021) me da error al leer datos, puede ser que el comando VALUES no sea el adecuado
% año actual2 = DIVIDE(CALCULATE(SUM(Consulta1[saldo_actual])),(CALCULATE(SUM(Consulta1[saldo_actual]),Consulta1[Etiqueta]= "Ingresos", Consulta1[year]= VALUES(Consulta1[year]), ALL())),0)
por favor tu ayuda
Solved! Go to Solution.
@hansaraneda , use in
% current year2 = DIVIDE(CALCULATE(SUM(Query1[current_balance])),(CALCULATE(SUM(Query1[current_balance])
,Query1[Label]= "Revenue", Query1[year] in VALUES(Query1[year]), ALL())),0)
Thank you very much for your help, it was the correct solution
@hansaraneda , use in
% current year2 = DIVIDE(CALCULATE(SUM(Query1[current_balance])),(CALCULATE(SUM(Query1[current_balance])
,Query1[Label]= "Revenue", Query1[year] in VALUES(Query1[year]), ALL())),0)
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 38 | |
| 35 | |
| 33 | |
| 32 | |
| 29 |
| User | Count |
|---|---|
| 134 | |
| 96 | |
| 78 | |
| 67 | |
| 65 |