Forum Discussion

F_Reh's avatar
F_Reh
Post Patron
5 months ago
Solved

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 ...
  • Poojara_D12's avatar
    4 months ago

    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)