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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
CuriousGuy001
Helper I
Helper I

MTD/QTD/ROY Dax

Hi everyone,

 

I ran into a problem with the MTD/QTD/ROY selection, the ROY stands for Remaining of the Year, for a forecast calculation. Whenever I click on the QTD and ROY it doesn't return the result I am looking for, while the MTD does. The Dax calculation is,

Screenshot 2024-06-17 152606.png

 

, the problem is below, I want to return to the remaining of the month of year and able to use prediction for sales and leads

 

Screenshot 2024-06-17 151852.png

and the relationship model,

Screenshot 2024-06-17 152248.png

2 REPLIES 2
Anonymous
Not applicable

Hi  @CuriousGuy001 ,

 

CALEDAR() function of the two parameters are date type, but your RemainingOFtheYear to find out the number of days of the two dates, is a numerical type, if your RemainingOFtheYear want to seek the first day of the current year, you can use Date(Year(Today()),1,1)

If your QuaterStart wants to find the first day of the current quarter, you can use the function with &&QUARTER('Forcast_Plan_2024'[Year 2024])=MAX(QUARTER('Forcast_Plan_2024'[Year 2024])))

 

Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data. We can better understand the problem and help you.

 

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi Liu,

 

I was able to fix the QTD, was missing this "

QUARTER('Margin  Sheet 2024'[Install Date])=QUARTER(TodayDate))"
 
I would love to share my data, but then I will have to re-do everything, the time intelligence is the last part of my project. but I can share images if there is a part you want to see. Thank you for your understanding!
 
Also, what I am trying to accomplish here is to show the next quarter and the remaining of the year starting July to December of this year.
 
Screenshot 2024-06-18 085221.png
 
So my manager can focus of the remaining of the year by adding the (%) and error and forecast the next leads and revenue for 2024.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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