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! It's time to submit your entry. Live now!
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)
| User | Count |
|---|---|
| 49 | |
| 37 | |
| 33 | |
| 22 | |
| 18 |
| User | Count |
|---|---|
| 131 | |
| 99 | |
| 56 | |
| 37 | |
| 37 |