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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

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
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.