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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
amd567
Frequent Visitor

Calculation to get remediated value using month differences

Hi,

 

I am looking to be abel to caluclate the below month on month using DAX

 

((July Total Vulns + Aug New Vulns) - Aug Total Vulns) = Aug Remediations

 

 

I have a file that takes a load in at the start of each month (LoadDate) 

amd567_1-1687972398274.png

 

I then check to see if this [Vulnerabilitity ID] is new or was present in the previous month using the following calculation  which will mark it as new or old. 

New at LoadDate = if
(CALCULATE(COUNTROWS('Rapid 7 Sample'),FILTER('Rapid 7 Sample','Rapid 7 Sample'[Vulnerability ID] = EARLIER('Rapid 7 Sample'[Vulnerability ID])
&& ('Rapid 7 Sample'[LoadDate])=EARLIER('Rapid 7 Sample'[Last date of previous month])))>0,"Old","New")

 

I need to calculate the below but have it ongoing month on month 

 

Total Vulns = Old + New for that month

 

i.e. in Feb  --- ((Jan Total Vulns + Feb New Vulns) - Feb Total Vulns) = Feb Remediations

i.e. in Mar  --- ((Feb Total Vulns + Mar New Vulns) - Mar Total Vulns) = Mar Remediations

 

((Month -1 Total Vulns + Month New Vulns) - Month Total Vulns) = Month Remediations

 

Any help or guidance would be greatly appricated. Thanks!!

1 REPLY 1
Anonymous
Not applicable

Hi @amd567 ,

In order to better understand your demands and give the right solution, could you please provide some more specific information? such as your desensitized example data and a screenshot of your desired results?

Thanks for your efforts & time in advance.

 

Best regards,
Community Support Team_Binbin Yu

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.