Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hello! I am working with KPI vizualizaciones. I have tried different types of KPI visualizations, but in no achievement that the objective color changes to the correct color. My KPI is about one year sales, and I have created a quick measure with the month x month variation. The values are displayed correctly, but when the sales value of a month is lower than the previous month, it should be shown in red, otherwise in green. I share the link of my board.
I hope you can help me. I can not find where my error is.
Thank you!
https://drive.google.com/drive/folders/1l7_Y6TX1yPGK7FxPVUDxQJloN-cRVnZ1?usp=sharing
Solved! Go to Solution.
Hi @psembaj,
The KPI visual evaluates the Indicator value with Target Goals value and display color based on Color coding setting. See: https://docs.microsoft.com/en-us/power-bi/power-bi-visualization-kpi
In your scenario, as you would like to show green/red color when the sales value of a month is greater/lower than the previous month, you can create another measure to show previous moth sales and put it as Target Goals bucket, see:
PREV_MONTH =
CALCULATE(
[PrecioTotal_USD_ACTUAL],
DATEADD('Calendario'[Date], -1, MONTH)
)
Without using KPI visual, you could also set Conditional Formatting for the measure Diferencia USD_Con Mes Anterior in the table visual:
See attached pbix file.
Best Regards,
Qiuyun Yu
Hi @psembaj,
The KPI visual evaluates the Indicator value with Target Goals value and display color based on Color coding setting. See: https://docs.microsoft.com/en-us/power-bi/power-bi-visualization-kpi
In your scenario, as you would like to show green/red color when the sales value of a month is greater/lower than the previous month, you can create another measure to show previous moth sales and put it as Target Goals bucket, see:
PREV_MONTH =
CALCULATE(
[PrecioTotal_USD_ACTUAL],
DATEADD('Calendario'[Date], -1, MONTH)
)
Without using KPI visual, you could also set Conditional Formatting for the measure Diferencia USD_Con Mes Anterior in the table visual:
See attached pbix file.
Best Regards,
Qiuyun Yu
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
114 | |
99 | |
82 | |
70 | |
60 |
User | Count |
---|---|
149 | |
114 | |
107 | |
89 | |
67 |