Hello,
I hope someone can help me with this one; I'm struggling to find a working solution after much searching.
I have built a flow that generates multiple HTML table from a PowerBI query, applies a CSS style table to each and emails the compiled tables to selected users. Overall, the CSS style sheets work well for each table, with each separate table having its own style sheet.
However, I cannot for the life of me figure out how to apply formatting to specific columns within each table. The intention is to have a red/green colour coding to instruct users to specific columns, but building this into the CSS style table is proving fruitless.
An example of the style sheet I'm using is as below:
Note the nth-child, with the intention of changing the 6th column to a specific colour.
The tables are generated via a PowerBI query, which is then filtered and the table class added to the HTML:
The generated HTML tables are then appended to the CSS style sheets (max five in total), producing an email:
However, the final output does not have the expected colouring on the sixth column, although all other formatting is applied:
I also intend to have two different coloured columns, and I'm not sure if this is a further complication considering I can't get a single column to work!
Any help appreciated and happy to provide any further details!