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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
F_Reh
Helper V
Helper V

DATESYTD problem in PB Onpremises (Remote Server)

Good Afternoon,

 

I am making a duplicate copy version of a certain dashboard in PB Onpremises (Remote Server). It was originally made in the previous PB Desktop version.

 

My use of DATESYTD in a measure in the previous PB Desktop version gave no problems, but in the new version the measure(s) using DATESYTD does not give the required Running Total result:

 

Attendances FYTD = CALCULATE(Daily_Attendances[Total_Attendances],DATESYTD(DatesTable[Date],"31/3"))
 
Kindly advise
 
Regards
1 ACCEPTED SOLUTION
Poojara_D12
Super User
Super User

Hi @F_Reh 

Your DAX is almost correct - the issue is not the function itself, it’s how the year-end parameter is being interpreted in newer versions of Microsoft Power BI.

Change it to:

Attendances FYTD =
CALCULATE(
Daily_Attendances[Total_Attendances],
DATESYTD(DatesTable[Date], "03/31")
)

If it still misbehaves, then your issue is one of these (common in Report Server setups):

Your DatesTable is not marked as a Date Table

Relationship between DatesTable[Date] and fact table is broken/inactive

Daily_Attendances[Total_Attendances] is not a proper measure (should be SUM-based)

 

Did I answer your question? Mark my post as a solution, this will help others!
If my response(s) assisted you in any way, don't forget to drop me a "Kudos"

Kind Regards,
Poojara - Proud to be a Super User
Data Analyst | MSBI Developer | Power BI Consultant
Consider Subscribing my YouTube for Beginners/Advance Concepts: https://youtube.com/@biconcepts?si=04iw9SYI2HN80HKS

View solution in original post

7 REPLIES 7
Poojara_D12
Super User
Super User

Hi @F_Reh 

Your DAX is almost correct - the issue is not the function itself, it’s how the year-end parameter is being interpreted in newer versions of Microsoft Power BI.

Change it to:

Attendances FYTD =
CALCULATE(
Daily_Attendances[Total_Attendances],
DATESYTD(DatesTable[Date], "03/31")
)

If it still misbehaves, then your issue is one of these (common in Report Server setups):

Your DatesTable is not marked as a Date Table

Relationship between DatesTable[Date] and fact table is broken/inactive

Daily_Attendances[Total_Attendances] is not a proper measure (should be SUM-based)

 

Did I answer your question? Mark my post as a solution, this will help others!
If my response(s) assisted you in any way, don't forget to drop me a "Kudos"

Kind Regards,
Poojara - Proud to be a Super User
Data Analyst | MSBI Developer | Power BI Consultant
Consider Subscribing my YouTube for Beginners/Advance Concepts: https://youtube.com/@biconcepts?si=04iw9SYI2HN80HKS
v-priyankata
Community Support
Community Support

Hi @F_Reh 

Thank you for reaching out to the Microsoft Fabric Forum Community.

@Natarajan_M Thanks for the inputs.

I hope the information provided by user was helpful. If you still have questions, please don't hesitate to reach out to the community.

 

Hi @F_Reh 

Hope everything’s going smoothly on your end. I wanted to check if the issue got sorted. if you have any other issues please reach community.

Natarajan_M
Solution Sage
Solution Sage

Hi @F_Reh , In the solution I shared, I created the measure, but the screenshot appears to show values derived from a calculated column.

 

Thanks 

It is indeed a calculated column with Running Totals....It worked fine in the old Power BI Desktop version...The exact application of DATEYTD is inexplicably failing in the onpremises remote server version !

F_Reh
Helper V
Helper V

Unfortunately the Running Total is still not being calculated in spite of making the suggested change....The Onsite (Remote Server) version is 2.150.1926.0 64-bit (January 2026)

 

The Onsite (Remote Server) Version top rows looks like this (Descending). I have modified the measure to use "3/31":

 

F_Reh_1-1774877883798.png

 

Kind Regards

 

 

Natarajan_M
Solution Sage
Solution Sage

Hi @F_Reh , Could you share which version exactly ? also can you try whether the small change in the format is helping you to fix the error:
instead of this 
Attendances FYTD = CALCULATE(Daily_Attendances[Total_Attendances],DATESYTD(DatesTable[Date],"31/3"))

use 
Attendances FYTD = CALCULATE(Daily_Attendances[Total_Attendances],DATESYTD(DatesTable[Date],"3/31"))

I recreated the scenario with some sample data both the measures are working for me .

Data model :

Natarajan_M_0-1774875125929.png


Sample data :

Natarajan_M_1-1774875144365.png


Op:

Natarajan_M_2-1774875161226.png

 


File : 
Rag status.pbix


Thanks
If you found this helpful, please consider giving it a kudo and marking it as the accepted solution — it goes a long way in helping others facing the same issue.

For more Power BI tips and discussions, let’s connect on LinkedIn:
https://www.linkedin.com/in/natarajan-manivasagan

Cheers!

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.