![](/img/trans.png)
[英]How to change/Set Background color of a cell [Row-based] in Power BI
[英]Power BI :: change background color based on another column
我之前問過一個關於如何使用PREVIOUSMONTH的問題,多虧了我能夠創建 2 列:
我現在想更改背景顏色,以便數字可以是:
像這樣:
我檢查了條件格式>背景顏色,但我認為沒有這樣做的選擇。
所以我創建了這個 DAX 規則:
PreviousMonthCheck =
IF ([PreviousMonth] < MAX('Usage details'[costInBillingCurrency]),1,
IF ([PreviousMonth] = MAX('Usage details'[costInBillingCurrency]),2,
IF ([PreviousMonth] > MAX('Usage details'[costInBillingCurrency]),3,
"Fourth case"
)
)
)
現在,如何使用此規則為 SelectedMonth 着色?
或者是否有任何視覺效果可以開箱即用?
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.