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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Rohit_Curate109
Frequent Visitor

Want to Calculate StartDate & EndDate for Non Standard Calendar.

I want to Calculate End date where I have two columns , one is Date Column and Second id Month Year Column. 
I want to Extract EndDate from the Date Column when My Month year changes to another month.
I want my start date as next date from the another month's start date from date column.
Rohit_Curate109_1-1701239921039.png

I need End Date 28 January 2023 and start date is 29 january.
please help regarding this.

2 REPLIES 2
FreemanZ
Super User
Super User

hi @Rohit_Curate109 ,

 

not if i fully get you, try to plot a visual with your dates[mmm yyyy] column and two measures like:

StartDate = 
MINX(
    FILTER(
        dates,
        dates[mmm yyyy] = MAX(dates[mmm yyyy])
    ),
    dates[date]
)

EndDate = 
MAXX(
    FILTER(
        dates,
        dates[mmm yyyy] = MAX(dates[mmm yyyy])
    ),
    dates[date]
)

 

or

could you provide how your calendar table is defined (the DAX code?) and what do you expect of that?

Hi, Thank you for the Reply.
The solution You have provided is working good at some extent, but If I talk about my calendar.
It is from 3 jan 2021 to 28 december 2024, and the Dax you have provided is coming right but for Dec-24 month.
I need Start Date of every month and same goes for End Date.
Because I want to calculate MTD, YTD, QTD for Non Standard Calendar which has Max Date for Future Month which is Dec-24.

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.