
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.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Kiran KumarPosted Feb 16, 2025, 6:46 AM
Its not in html its in Power bi visualization
Eliana BlakePosted Feb 16, 2025, 6:45 AM
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!