Forum Discussion
Coloring rows based on values in other rows
- Anonymous2 years ago
Hi dwauer
You can try the following steps:
1. Add an index column to a table in the Power Query.
If the index column is not added, the effect in the table visualization is shown below.
2. Create several measures as follow:
Measure = VAR _t = ADDCOLUMNS('Table', "Group", RANKX(ALL('Table'), [ID], [ID], ASC, Dense)) RETURN SUMX(_t, [Group])formatting = IF(ISODD([Measure]), "orange", "grey")3. Make the Conditional Formatting settings as shown here.
Output:
Best Regards,
Yulia XuIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi dwauer
You can try the following steps:
1. Add an index column to a table in the Power Query.
If the index column is not added, the effect in the table visualization is shown below.
2. Create several measures as follow:
Measure =
VAR _t = ADDCOLUMNS('Table', "Group", RANKX(ALL('Table'), [ID], [ID], ASC, Dense))
RETURN
SUMX(_t, [Group])
formatting = IF(ISODD([Measure]), "orange", "grey")
3. Make the Conditional Formatting settings as shown here.
Output:
Best Regards,
Yulia Xu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.