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
WhaleWatcher222
Helper II
Helper II

Dax Measure does not give previous values

Hi Experts

 

My FY Runs from 31/3 to 1/4 each year when i select mar 24 i am not gettin my YTD data for Mar 24, but all dates after MAr 24 the formula is working

 

YTD Actuals = CALCULATE(
    TOTALYTD(    
        [Total Actuals],
        'Date'[Date],
        'Date'[_MonthYearSort] <= SELECTEDVALUE(_MonthYearTable[_MonthYearSort]),
        "31/3"
    )
)

 

1 ACCEPTED SOLUTION
dharmendars007
Memorable Member
Memorable Member

Hello @WhaleWatcher222 , 

 

Here’s how you can modify your formula to ensure that March 2024 is included correctly in your YTD calculations

 

YTD Actuals =
CALCULATE(TOTALYTD(
[Total Actuals],'Date'[Date],
ALL('Date'), -- Ensures the entire date range is evaluated
"31/3" -- This sets the fiscal year-end at March 31st),
'Date'[MonthYearSort] <= SELECTEDVALUE(_MonthYearTable[_MonthYearSort]))

 

Filters in Model: Double-check if any other filters are being applied that might restrict March 2024 from being considered.

 

If you find this helpful , please mark it as solution which will be helpful for others and Your Kudos/Likes 👍 are much appreciated!

 

Thank You

Dharmendar S

LinkedIN 

View solution in original post

2 REPLIES 2
dharmendars007
Memorable Member
Memorable Member

Hello @WhaleWatcher222 , 

 

Here’s how you can modify your formula to ensure that March 2024 is included correctly in your YTD calculations

 

YTD Actuals =
CALCULATE(TOTALYTD(
[Total Actuals],'Date'[Date],
ALL('Date'), -- Ensures the entire date range is evaluated
"31/3" -- This sets the fiscal year-end at March 31st),
'Date'[MonthYearSort] <= SELECTEDVALUE(_MonthYearTable[_MonthYearSort]))

 

Filters in Model: Double-check if any other filters are being applied that might restrict March 2024 from being considered.

 

If you find this helpful , please mark it as solution which will be helpful for others and Your Kudos/Likes 👍 are much appreciated!

 

Thank You

Dharmendar S

LinkedIN 

H Thanks for the reply back i have changed the measuere to

YTD Actuals = CALCULATE(
    TOTALYTD(    
        [Total Actuals],
        'Date'[Date],
        ALL('Date'), "31/3"),
        'Date'[_MonthYearSort] <= SELECTEDVALUE(_MonthYearTable[_MonthYearSort])
   
    )
the only filter in at page level is = IsCurrentFiscalYR = TRue is selected - i need the measure to work with this applied...

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.