Forum Discussion

king2005r's avatar
king2005r
Helper III
5 years ago
Solved

Vulnerabilities status report

Hi I have a table with monthly vulnerabilities, Plugin ID, and Host IP, I need to do the below measurement  : 1- Get repeated monthly vulnerabilities 2- Get the count of the new vulnerabilities 3...
  • v-kelly-msft's avatar
    v-kelly-msft
    5 years ago

    Hi king2005r ,

     

    Create 2 calculated columns as below:

    Repeated = 
     var _previous=CALCULATE(MAX('Table'[Plugin ID]),FILTER('Table','Table'[Host]=EARLIER('Table'[Host])&&'Table'[Open Date]<EARLIER('Table'[Open Date])&&'Table'[Plugin ID]=EARLIER('Table'[Plugin ID])))
     Return
     IF(_previous=BLANK(),"Not repeated","Repeated")
    Count of Plugin vulnerability = 
    var _count=CALCULATE(COUNT('Table'[Plugin ID]),FILTER('Table','Table'[Plugin ID]=EARLIER('Table'[Plugin ID])&&'Table'[Host]=EARLIER('Table'[Host])&&'Table'[Open Date]<=EARLIER('Table'[Open Date])))
    Return
    _count

    And you wil see:

    For the related .pbix file,pls see attached.

     

    Best Regards,
    Kelly

    Did I answer your question? Mark my post as a solution!