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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
binayjethwa
Helper IV
Helper IV

How to Get current,previous month ,quarter , Year for fiscal month starting in july for dax

Hi ,

I have a date table which has fiscal Year starting from July and ending on June.

I have to perform below calculations based on fiscal date range.

1. Current fiscal month sales ( which is march 2023 , and comes under FY23)

2.Previous fiscal month sales(feb 2023,FY23)

3.Current  fiscal Quarter sales(Q3, since jan -mar is Q3 for Fiscal Year starting on July)

4.Previous fiscal Quarter sales(Q2 , which is oct-dec)

3.Current Fiscal Year sales (FY 23 , which is July 1 2022- June 30 2023)

6.Previous Fiscal Year sales(FY22 , which is July 1 2021-June 30 2022)

 

Sample dax : Sales = sum(sales)

Note: I tried month(Today()) but its showing as 3 since its taking calendar from Jan.

 

Can someone please help here.

 

Thanks,

Binay

4 REPLIES 4
Ashish_Mathur
Super User
Super User

Hi,

Share the download link of the PBI file.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Hi @Ashish_Mathur ,

 

attaching link for sample pbix with date and sales table. 

 

https://1drv.ms/u/s!AkkYcK56fHUSgnTTMkbJXiXsVc6a?e=ytapI1 

 

Thanks,

Binay

Hi,

I cannot open the file.  This is the message i get

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Hi,

I cannot open the file.  This is the message i get

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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