Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
king2005r
Helper III
Helper III

Vulnerabilities status report monthly or yearly

Hi

I have a table with monthly vulnerabilities, Plugin ID, and Host IP, and the open date, I need to do the below measurement  :

1- Get repeated monthly vulnerabilities

2- Get the count of the new vulnerabilities

3- Any vulnerabilities that don't exist in the last scan month vulnerabilities consider as closed in all previous months 

4- Any vulnerabilities that exist in the last scan result to be considered as open in all previous months

 

Example table : 

Aug/2020

Plugin IDHostOpen Date
1026311.22.33.1161/Aug/2020
1038612.33.44.231/Aug/2020

Sep/2020

Plugin IDHostOpen Date
1026311.22.33.1161/Sep/2020
1038912.33.44.231/Sep/2020

 

Oct/2020

Plugin IDHostOpen Date
1024411.22.33.661/Oct/2020
1034712.33.44.231/Oct/2020

 

 

 

Sample of the output :

Plugin IDHostOpen DateRepeatedStatusCount of Plugin vulnerabilityToday
1026311.22.33.1161-Aug-20Not repeatedOpen11-Jan-21
1038612.33.44.231-Aug-20Not repeatedOpen11-Jan-21
1026311.22.33.1161-Sep-20repeatedOpen21-Jan-21
1038912.33.44.231-Sep-20Not repeatedClosed11-Jan-21
1024411.22.33.661-Oct-20Not repeatedClosed11-Jan-21
1034712.33.44.231-Oct-20Not repeatedClosed11-Jan-21
1024411.22.33.661-Nov-20repeatedClosed21-Jan-21
1034712.33.44.231-Nov-20repeatedClosed21-Jan-21
1026311.22.33.1161-Dec-20repeatedopen31-Jan-21
1038612.33.44.231-Dec-20repeatedopen21-Jan-21
1026311.22.33.1161-Jan-21repeatedopen41-Jan-21
1038612.33.44.231-Jan-21repeatedopen31-Jan-21

 

2 ACCEPTED SOLUTIONS
lbendlin
Super User
Super User

You can do this with calculated columns

 

Repeated = 
var o = Vulnerabilities[Open Date]
var c = CALCULATE(COUNTROWS(Vulnerabilities),ALLEXCEPT(Vulnerabilities,Vulnerabilities[Plugin ID]),Vulnerabilities[Open Date]<o)
return if(c=0,"Not repeated","repeated")

Status = 
var m = maxx(all(Vulnerabilities),Vulnerabilities[Open Date])
var x = CALCULATE(COUNTROWS(Vulnerabilities),allexcept(Vulnerabilities,Vulnerabilities[Plugin ID]),Vulnerabilities[Open Date]=m)
return if(x=0,"Closed","Open")

 

lbendlin_0-1618022637015.png

 

I don't understand the logic for the count column.

View solution in original post

lbendlin
Super User
Super User

Count = 
var o = Vulnerabilities[Open Date]
return CALCULATE(COUNTROWS(Vulnerabilities),ALLEXCEPT(Vulnerabilities,Vulnerabilities[Plugin ID]),Vulnerabilities[Open Date]<=o)

View solution in original post

4 REPLIES 4
lbendlin
Super User
Super User

Count = 
var o = Vulnerabilities[Open Date]
return CALCULATE(COUNTROWS(Vulnerabilities),ALLEXCEPT(Vulnerabilities,Vulnerabilities[Plugin ID]),Vulnerabilities[Open Date]<=o)
lbendlin
Super User
Super User

You can do this with calculated columns

 

Repeated = 
var o = Vulnerabilities[Open Date]
var c = CALCULATE(COUNTROWS(Vulnerabilities),ALLEXCEPT(Vulnerabilities,Vulnerabilities[Plugin ID]),Vulnerabilities[Open Date]<o)
return if(c=0,"Not repeated","repeated")

Status = 
var m = maxx(all(Vulnerabilities),Vulnerabilities[Open Date])
var x = CALCULATE(COUNTROWS(Vulnerabilities),allexcept(Vulnerabilities,Vulnerabilities[Plugin ID]),Vulnerabilities[Open Date]=m)
return if(x=0,"Closed","Open")

 

lbendlin_0-1618022637015.png

 

I don't understand the logic for the count column.

Hi @lbendlin 

i will try your solutions

regards the count column 

it's count repeated time per month for each plugin id 

 

plugin id number : 10263 repeated in jan 4 time's 

 

 

 

@lbendlin

Hi bro, sorry i cant send massage

 i have tried the above foumla for status and dos'nt work, resoult was incorrect

 

actullay i need to do the below steps :

1- after get the last month report i added to Powerbi, this report has last scan information "last month"

2- Forumla to check all prevuois record for the past period for the host name "IP" with 3 conduction "Plugin ID" and "Host IP" and "Port number"

3- resoult if the three condution are equal to last scan resoult it mean this vulnerability still open, if not so it's closed in all previos months

4- Closed mean this vulnerability is not exist in the last scan report "last month""

 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors