Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
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,
, 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
and the relationship model,
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 "
User | Count |
---|---|
21 | |
20 | |
14 | |
10 | |
8 |
User | Count |
---|---|
30 | |
28 | |
13 | |
12 | |
11 |