Forum Discussion

Sriku's avatar
Sriku
Icon for Helper IV rankHelper IV
6 years ago

Bucket matrics and create RAG status

Hi Team,

 

Need to count the total metrics and the total bucket as Red >0 and Green =0:

CountryMetrics1Metrics1Metrics1Metrics1Total
CA00000
OR01102
WE00000
IN100 1
LI000 0
TE00000
SO01102
LI000 0
DE00000

5 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    HI Sriku ,

     

     Red >0 = CALCULATE(COUNTA(Table[County]), FILTER(Table , [metric1] = 1))

    Green =0 = CALCULATE(COUNTA(Table[County]), FILTER(Table , [metric1] = 0))

     

    Regards,
    Harsh Nathani
    Did I answer your question? Mark my post as a solution! Appreciate with a Kudos!! (Click the Thumbs Up Button)

  • Sriku , how come are Metrics has the same name Metrics1

     

    You can create a new measure

     

    Total = sumx(Table,[Metrics1] +[Metrics2]+[Metrics3]+[Metrics4])

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi Sriku ,

     

    Total = [metric1] + [metric2] + [metric3] +[metric4]

     

    Regards,
    Harsh Nathani
    Did I answer your question? Mark my post as a solution! Appreciate with a Kudos!! (Click the Thumbs Up Button)