Forum Discussion

alhowarth's avatar
alhowarth
Icon for Helper I rankHelper I
6 years ago
Solved

Line chart for success vs failures, and DAX help

I am working with scheduled-jobs data.  I would like to create a chart to show the number of success and failures per day. I'm thinking that this would be a line chart, with one line for success and...
  • lit2018pbi's avatar
    6 years ago

    alhowarth 

     

    Here is my Data set: On August 28 and August 29 there are 2 counts.

     

    RUN_DTExit_code

    8/27/20200
    8/28/20200
    8/28/20201
    8/28/20201
    8/29/20200
    8/29/20200
    8/29/20201
    8/30/20200
    8/30/20201

     

    I have used the following measures:

    Success = CALCULATE(COUNT('Table'[Exit_code]),'Table'[Exit_code]=0)
    Failure = CALCULATE(COUNT('Table'[Exit_code]),'Table'[Exit_code]=1)
     
    Here's the final visual:
     
     
    Let me know if this resolves your issue.