Forum Discussion
Iam_Syed
7 months agoRegular Visitor
When values duplicate then green when unique then Red
Hi Team, I am stuck for creating a calculation but lo luck, please help on this. In this table has Row = Category (Text) Column = Type (Text) ...
- 7 months ago
hi Iam_Syed ,
Not sure if i fully get you, supposing you have a data table like:
try to plot your expected matrix visual and apply conditional formatting for the value field background based field value with a measure like below:
Measure = VAR _cat = MAX(data[category]) VAR _type = MAX(data[type]) VAR _table = ADDCOLUMNS( SUMMARIZE( FILTER( ALL(data), data[category] = _cat && data[type] <> _type ), data[category], data[type] ), "Amt", CALCULATE(SUM(data[sales])) ) VAR _AmtList = SUMMARIZE(_table, [Amt]) VAR _result = IF([SalesAmt] IN _AmtList, "Green", "Red") RETURN _resultit works like:
Iam_Syed
7 months agoRegular Visitor
Hi Irwan,
We need that 0 values the table it selft will calculate right, if duplicate then Green or If unique the Red. that is fine what we expected,
I wanted to show the subtotal as well