
I want to get this page how to get with conditional formatting
For loss and profit show different colors in the page

I want to get this page how to get with conditional formatting
For loss and profit show different colors in the page
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Eliana BlakeRank #1,595 · 993 reputationPosted Feb 16, 2025, 1:45 AM EST
It seems like you are looking to apply conditional formatting to differentiate between loss and profit on a web page based on the provided information and image. Conditional formatting allows you to dynamically change the appearance of elements based on specified criteria.
To achieve this using CSS, you can assign different colors to elements based on certain conditions. Here's a conceptual example:
In this example, elements with the class "loss" will be displayed in red, indicating a loss, while elements with the class "profit" will be displayed in green, indicating a profit. You can adjust the criteria and styling according to your specific requirements.
If you are looking to implement this dynamically on a web page based on actual data, you may need to use JavaScript to calculate the values and apply the appropriate classes for conditional formatting.
Let me know if you need further assistance or if you have specific requirements in mind for the implementation!
Kiran KumarRank #1,268 · 1.4K reputationPosted Feb 16, 2025, 1:46 AM EST
Its not in html its in Power bi visualization