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.
Dear friends, I want my value to turn red when it is negative and green when it is positive.
This value is current year - (minus) last year
Regards
Hi @BeingAslam
You can create a measure like :
Result
PBIX is attached
If this post helps, then please consider Accepting it as the solution to help the other
members find it more quickly
Hi Ritaf this is solution not work properly, suggest another.
This solution should work perfectly according to the description,
If it is not, please share the dummy file to check why.
I have a measure which is adding current year sales minus last year, but when I apply filter then this condition is not working properly.
do it like in the screenshot
Hi Ahmed this is solution not work properly, suggest another.
explain why it doesn't work
I have a measure which is adding current year sales minus last year, but when I apply filter then this condition is not working properly.
screenshot to the studio so we can understand you
and when you change the filter, does the measure give the correct result?
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 |
---|---|
61 | |
56 | |
55 | |
36 | |
34 |
User | Count |
---|---|
77 | |
73 | |
45 | |
45 | |
43 |