Forum Discussion

cshashank's avatar
cshashank
Frequent Visitor
9 years ago
Solved

Need Help with Dax

Hi, I have a below table   Date Test Name Unique Cases Executed  Pass 13-Jul-17 Cup 15 5 14-Jul-17 Cup 20 10 15-Jul-17 Tea 22 4 16-Jul-17 Cup 40 30 17-Jul-17 Cup ...
  • TomMartens's avatar
    9 years ago

    Hey,

     

    Basically you can achieve what you on two ways:

     

    • change the interaction between the time slicer and your kpi visual
    • calculate a independent measure like this
      mspassindependent = calculate(
      sum('tablename'[measurename],
      all('tablename'[nameofthedatecolumn])
      )
  • TomMartens's avatar
    TomMartens
    9 years ago

    Please provide the numbers you want to use to calculate the kpi and the result you expect

  • kcantor's avatar
    kcantor
    9 years ago

    Wrap it in calculate and remove the date filter for total unique cases executed.

    Total Unique Cases Executed = CALCULATE([Unique Cases Executed], ALL('Date'[Date]))

    That removes the date filter. If you need to reapply the date filter to maintain a certain year or month you can add that back in calculate.

     Then use the Total Unique Cases Executed to calculate your percentage instead.

    You will need a date table. I am assuming you have one and it is called Date in my measure example.