Reputation: 1
Matrix VisualHi I want to create a dax query for a case that if there is a value in a matrix visual and if there is a value greater than or equal to 200 in any cell I want to **highlight whole row ** as red else I want if the value is less that 200 then green in that particular specific cell.
I am expecting a DAX query for conditional formatting.
Upvotes: 0
Views: 596
Reputation: 12111
Steps
Matrix Sales = COALESCE(SUM('Order'[Sales]), "")
Matrix RowCell Formatting =
var vCell = SUM('Order'[Sales])
var vRow = CALCULATE(SUM('Order'[Sales]), ALLEXCEPT('Order', 'Order'[Order ID]) )
RETURN SWITCH(TRUE(), vRow >= 200, "Row", vCell < 200 && NOT(ISBLANK(vCell)), "Cell")
Notes
Matrix Sales
returns the sum sales or an empty string.Upvotes: 0