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 September 15. Request your voucher.

Reply
georged018
New Member

Date Calculation

Hi All

 

I new to Power BI  so please bare with me Smiley Happy

 

Trying to work out how to do a calculation on two dates. What i am looking to do is analyse incidents closed within a time period and i am looking to do this using the two date fields, Rolved and Closed.

 

i think i need to create a new column with an IF statement, If Resolved or Closed within Month x or is there a way i can group dates between two seperate columns?

 

any help would be great Smiley Happy

5 REPLIES 5
nogi
Advocate II
Advocate II

Does it need to be in a new column/table? Why not just use the filters and filter by date?

Can i filter between two seperate columns 

Anonymous
Not applicable

@georged018,

Could you please share sample data of you table and post expected result here? What do you mean that group/filter dates between two separate columns?


Regards,
Lydia

Hi @Anonymous

 

What we are trying to occomplish it track closed incidents which have been either closed or resolved within a particular month. This data is recorded under Resolved Date or Closed Date. As the dates are different we are unable to just use the one field so was looking to use a combination of both.

 

 Closed-Resolved BI.PNG

Anonymous
Not applicable

@georged018,

Create a column using the following similar formula.

Column = IF(MONTH(Table7[Resolved Date])=8 || MONTH(Table7[Closed Date])=8,1,0)

Regards,
Lydia

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.