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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
RES
Regular Visitor

Calculate sum based on dates within a month of another column

Report MonthValueIncident Date
2/1/2025

5

1/2/2018
2/1/202553/12/2019
2/1/2025512/3/2023
2/1/2025102/2/2025
2/1/202554/8/2020
2/1/202557/9/2020
2/1/202552/13/2025
2/1/202551/31/2019

 

How would I calculate the sum of Value so that its grouped by when Incident Date is within the same month as the Report Date

 

In this example the report month has a value of 15 since two incidents occured in Feb 2025. 

1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

use this as a calculated column

 

FORMAT([Report Month],"YYYYMM")=FORMAT([Incident Date],"YYYYMM")

 

and use it as a filter.

View solution in original post

1 REPLY 1
lbendlin
Super User
Super User

use this as a calculated column

 

FORMAT([Report Month],"YYYYMM")=FORMAT([Incident Date],"YYYYMM")

 

and use it as a filter.

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.