Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
3 years ago
Solved

Count items that reach a value threshold

Hi, following my previous discussion here, I need to calculate a measure, that gives a number of products that reach a certain threshold.   For example I have 2 tables   Table1: Sales_current_mnt...
  • FreemanZ's avatar
    FreemanZ
    3 years ago

    aha, then you need a dimtable and a measure with this:

    PlanCheck =
    VAR TtlValue =
    SUMX(CurrentMonth, CurrentMonth[Value])
    +
    SUMX('PreviousMonth', 'PreviousMonth'[Value])
    RETURN IF(TtlValue>=250, "Plan exceeded", "Plan OK")
     
    model:

     

    try to plot a Table Visual with the measure and the Product Column from the dimtable. I tried and it worked like this: