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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Datagulf
Responsive Resident
Responsive Resident

Month minus Finacial year

Hello, Wonderful community. I am trying something interesting here and wanted your approach. So we have a dynamic formula that calculates the number of months already passed in the financial year. Then it can multiply this number with a monthly value to get the YTD target.  

So my financial year starts in April. If this value we need is in a column, how best would one go around that. 

2 REPLIES 2
amitchandak
Super User
Super User

@Datagulf , Try with help from time intellignece and date table

 

YTD Months= CALCULATE(distinctcount('Date'[Month Year]),DATESYTD('Date'[Date],"03/31"))

 

MTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESMTD('Date'[Date]))

 

Target = [MTD Sales] * [YTD Months]

 

To get the best of the time intelligence function. Make sure you have a date calendar and it has been marked as the date in model view. Also, join it with the date column of your fact/s. Refer :radacad sqlbi My Video Series Appreciate your Kudos.

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Hey, @amitchandak , thanks,  though the MTD Sales return Blank. No idea why. I have connected the Date table to the data. No errors..

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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