This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
Team,
I need help with having condional formating added in colors or icons for values when greater compared to previours year.
Eg /: countdata in values if its igreater than competitor previous year, it should give be green else red.
Please help
Hi @pmadam ,
Here some steps that I want to share, you can check them if they suitable for your requirement.
Here is my test data:
Create a column
Color =
VAR _t = 'Table'[Domain]
RETURN
IF(
ISNUMBER(
LOOKUPVALUE(
'Table'[TotalCount],
'Table'[Domain],
_t,
'Table'[PriceDate],
DATEADD('Table'[PriceDate], -1, YEAR)
)
),
IF(
'Table'[TotalCount] >
LOOKUPVALUE(
'Table'[TotalCount],
'Table'[Domain],
_t,
'Table'[PriceDate],
DATEADD('Table'[PriceDate], -1, YEAR)
),
"green",
"red"
),
"green"
)
Use the column as the filed value of conditional foramtting of the [TotalCount]
Final output
Best regards,
Albert He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
I get error msg " multiple values was supplied where a single value was expected" . Is it because of duplicated data in it. Please help with resolution
Hi @pmadam ,
Whether the problem has been solved. If there are other related issues you can continue to provide details below.
Best regards,
Albert He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Hi @pmadam ,
According to your description, this error occurs when two values are compared to each other, and you need to give both sides of the equation unique values to compare. In the previous code, the applicable case was to create a calculated column instead of measure.
Best regards,
Albert He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 5 | |
| 5 | |
| 3 | |
| 3 | |
| 2 |
| User | Count |
|---|---|
| 11 | |
| 7 | |
| 6 | |
| 6 | |
| 5 |