Forum Discussion
philosophie_e
4 years agoHelper I
MAX with condition
Hello, I need some support in establishing status for countries using MAX function (or potentially any other). I have three tables: Table 1 with name of countries where I want to have the final ...
- 4 years ago
Column = VAR _status = CALCULATE(COUNT ( Table2[Status] ),ALLEXCEPT(Table1,Table1[Country])) VAR _live = CALCULATE ( COUNT ( Table2[Status] ), Table2[Status] = "Live" ) VAR _ongoing = CALCULATE ( COUNT ( Table2[Status] ), Table2[Status] = "Ongoing" ) VAR _scheduled = CALCULATE ( COUNT ( Table2[Status] ), Table2[Status] = "Scheduled" ) RETURN SWITCH ( TRUE (), _live <> BLANK () && _live = _status, "Fully Live", _live <> BLANK () && _live <> _status, "Partially Live", _ongoing <> BLANK () && _ongoing = _status, "Ongoing", _scheduled <> BLANK () && _scheduled = _status, "Scheduled","Not Live" )
sevenhills
4 years agoSuper User
Please refine:
a) Could you go to Excel, create sample data for each table and columns you have. copy paste here.
b) Similarly what is the output expected for the conditions, so that it helps.
- philosophie_e4 years agoHelper I
Hello!
I created a sample file, please have a look. I would like to use the output value column as a legend in the map visual (see above).
Thank you.