Forum Discussion

Sander_NL's avatar
Sander_NL
Icon for Helper I rankHelper I
8 years ago
Solved

Need help multiple rows of data into one unique table and calculation last 30 days

Hi,   I have 2 tables: 1) List of servers that should be backed up (CMDB table) 2) I have a dataset from an API call. This contains multiple lines of data to determine whether a backup has been s...
  • Zubair_Muhammad's avatar
    Zubair_Muhammad
    8 years ago

    Sander_NL

     

    Last Completed_Backup =
    CALCULATE ( MAX ( Blad1[Backup schedule] ), Blad1[Status] = "Completed" )
    
    Number of completed backups = VAR result=CALCULATE(COUNTROWS(Blad1),Blad1[Status]="Completed")
    RETURN
    IF(ISBLANK(result),0,result)
  • Sander_NL's avatar
    Sander_NL
    8 years ago

    Zubair_Muhammad Thank you very much for your quick response. This solution is everything I need.