Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hi,
I want to color the cells of the matrix. The properties of the matrix are as follows.
column name = KontakHavuzID0
Row name = KontakHavuzID
Values = ContactCode
I wrote the following DAX for this matrix and I was able to do the coloring I wanted from the Contiditional formatting part. The interesting thing is that even though these columns look like numbers, they are actually of text type, but PBI
understood the terms greater and less than.
Color =
var KontakHavuzID = SELECTEDVALUE(ForOneThree[KontakHavuzID])
var KontakHavuzID0 = SELECTEDVALUE(ForOneThree[KontakHavuzID0])
return
SWITCH(
TRUE(),
KontakHavuzID = "Mevcut Değil", "",
KontakHavuzID0 = "Mevcut Değil", "",
KontakHavuzID > KontakHavuzID0, "#C8E5DC",
KontakHavuzID < KontakHavuzID0, "#F7D6D6",
KontakHavuzID = KontakHavuzID0, "#EFF1F2"
)
The problem starts here. In fact, each KontakHavuzID and KontakHavuzID0 has a description.
The columns containing the descriptions of the KontakHavuzID and KontakHavuzID0 columns are as follows: [Kontak Havuz ID - Mart 2023] and [Kontak Havuz ID - Şubat 2023]....
Now I need to use words instead of using ID in the row and column of the matrix. However, since the Words are TEXT, I cannot apply conditions such as greater than or less. The words have numerical equivalents in the same table, but I don't know how to associate them with each other with DAX. Below I share the relationships of the columns.
[Kontak Havuz ID - Mart 2023] --> KontakHavuzID
[Kontak Havuz ID - Şubat 2023] --> KontakHavuzID0
For a better understanding of the columns, I will give example values from each column;
[Kontak Havuz ID - Mart 2023] --> "KPIS", "ZRLCN", "TUKKP"...
KontakHavuzID --> 3, 5, 8...
Thank you all.
Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).
https://community.powerbi.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-...
Please show the expected outcome based on the sample data you provided.
https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
58 | |
56 | |
56 | |
38 | |
29 |
User | Count |
---|---|
75 | |
62 | |
45 | |
40 | |
39 |