Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
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
User | Count |
---|---|
140 | |
113 | |
104 | |
77 | |
65 |
User | Count |
---|---|
135 | |
116 | |
101 | |
71 | |
61 |