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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
sunil222
Helper II
Helper II

How many Months Left till End of FY

Hi Team,

 

I want to calculate how many months left till end of FY.

 

eg: current month is december , fiscal year staring from April so i need the value 3 because fy end on March 24.

 

please help me on the dax calculation to get the value

1 ACCEPTED SOLUTION
Fowmy
Super User
Super User

@sunil222 

Create the following meaure:

Month Count = 
VAR __Mon =   MONTH(MAX( 'Dates'[Date] ) )
RETURN
    IF( __Mon > 3 , 15 - __Mon , 3 - __Mon)

Fowmy_0-1703421782777.png

 



Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

View solution in original post

4 REPLIES 4
marcoperson_250
Regular Visitor

Thank you for sharing this type of question 

Fowmy
Super User
Super User

@sunil222 

Create the following meaure:

Month Count = 
VAR __Mon =   MONTH(MAX( 'Dates'[Date] ) )
RETURN
    IF( __Mon > 3 , 15 - __Mon , 3 - __Mon)

Fowmy_0-1703421782777.png

 



Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

I need the answer as 3 , now december value is 3 ,  i can use this value in another dax calculation.

 

as per your logic iam getting

 

sunil222_1-1703493257990.png

 

 

@sunil222 

You need to create a measure with the code thatI shared with you

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

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!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

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