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

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

Reply
BItoken
Helper III
Helper III

Compare dates in Data table to the calendar dates

Hi,

 

I have a table which has 2 dates... a maintenance date and a closed date. I was able to derive the month, year and quarter out of these dates for each mainetenance date and closed date.

Now, I have to create a measure to get the sum of sales where Maintenance date and closed date of the accounts falls in a particular QTR. This QTR (a regular Calendar Date FY QTR format) is supposed to be a sigle select Filter which will have Qtr selection between last 2 years and current FY .  

Is there a way i can get the date in there to compare and what DAX function should i use.

For Example: if I select the Filter slicer FY 2020 Q1: i need to get the sum of sales where the Closed end date and the Maintenance end date Qtr is same as the selected FY Qtr.

  

4 REPLIES 4
v-eachen-msft
Community Support
Community Support

Hi @BItoken ,

 

Has your problem been solved? Was my reply helpful to you? If the problem is resolved, you could accept the reply you like.

 

Community Support Team _ Eads
If this post helps, then please consider Accept it as the solution to help the other members find it.
v-eachen-msft
Community Support
Community Support

Hi @BItoken .

 

I created a sample, not sure if it meets your needs.

1-1.PNG

Here is my sample file for your reference.

 

Community Support Team _ Eads
If this post helps, then please consider Accept it as the solution to help the other members find it.
amitchandak
Super User
Super User

@BItoken , You can join your dates to a single date table. If the part of the same table only one will ve active.  Others you can activate using userelation

 

Refer: https://community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-tr...

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Thanks for your reply.

I have joined the cliosed end date and maintenance end date in my main view to the dimdate by creating an alias.

My issue here is i need a regular Date Qtr as a filter int he report to display data  where both these dates match the selected date and get the sum.  

 

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 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.