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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
kea_maps
Regular Visitor

My measure not returning correct subtotals

Why is my measure not pulling in right subtotals.

 

Please see the measure (unfortunaely I can't share the source data as its has critical company info)

YTD Actual =
CALCULATE(
    'Sales Data file xlsx'[Total Actual],
    FILTER(
        ALL('Sales Data file xlsx'),  -- Remove the calendar date filter
        YEAR('Sales Data file xlsx'[Calender Date]) = 2025 &&
        'Sales Data file xlsx'[Calender Date] >= EOMONTH(DATE(2025, MONTH(TODAY()), 1), -4) + 1 &&
        'Sales Data file xlsx'[Calender Date] < EOMONTH(DATE(2025, MONTH(TODAY()), 1), -1) + 1
  ),
    'Sales Data file xlsx'[Region] = SELECTEDVALUE('Sales Data file xlsx'[Region]))
 
 
The total I am excpecting needs to take into consideration the region filtered in the matrix table. But instead I think its reading blank. 
1 ACCEPTED SOLUTION
Sahir_Maharaj
Super User
Super User

Hello @kea_maps,

 

Can you please try this updated approach:

YTD Actual =
CALCULATE(
    [Total Actual],
    FILTER(
        ALL('Sales Data file xlsx'[Calender Date]),
        YEAR('Sales Data file xlsx'[Calender Date]) = 2025 &&
        'Sales Data file xlsx'[Calender Date] >= EOMONTH(DATE(2025, MONTH(TODAY()), 1), -4) + 1 &&
        'Sales Data file xlsx'[Calender Date] < EOMONTH(DATE(2025, MONTH(TODAY()), 1), -1) + 1
    )
)

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,
Sahir Maharaj
Data Scientist | Data Engineer | Data Analyst | AI Engineer
P.S. Want me to build your Power BI solution? (Yes, its FREE!)
➤ Lets connect on LinkedIn: Join my network of 15K+ professionals
➤ Join my free newsletter: Data Driven: From 0 to 100
➤ Website: https://sahirmaharaj.com
➤ Email: sahir@sahirmaharaj.com
➤ Want me to build your Power BI solution? Lets chat about how I can assist!
➤ Join my Medium community of 30K readers! Sharing my knowledge about data science and artificial intelligence
➤ Explore my latest project (350K+ views): Wordlit.net
➤ 100+ FREE Power BI Themes: Download Now
LinkedIn Top Voice in Artificial Intelligence, Data Science and Machine Learning

View solution in original post

4 REPLIES 4
v-prasare
Community Support
Community Support

Hi @kea_maps,

Thanks for reaching MS Fabric community support.

 

As we haven’t heard back from you, we wanted to kindly follow up to check if the issue your facing is resolved? or you still need any help here.

 

 

 

Thanks,

Prashanth Are

MS Fabric community support

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly and give Kudos if helped you resolve your query

v-prasare
Community Support
Community Support

@kea_maps,

As we haven’t heard back from you, we wanted to kindly follow up to check if the solution provided for your issue worked? or let us know if you need any further assistance here?

 

 

 

Thanks,

Prashanth Are

MS Fabric community support

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly and give Kudos if helped you resolve your query

v-prasare
Community Support
Community Support

Hi @kea_mapsAs we haven’t heard back from you, we wanted to kindly follow up to check if the solution provided for your issue worked? or let us know if you need any further assistance here?

 

@Sahir_Maharaj , Thanks for your promt response

 

 

Thanks,

Prashanth Are

MS Fabric community support

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly and give Kudos if helped you resolve your query

Sahir_Maharaj
Super User
Super User

Hello @kea_maps,

 

Can you please try this updated approach:

YTD Actual =
CALCULATE(
    [Total Actual],
    FILTER(
        ALL('Sales Data file xlsx'[Calender Date]),
        YEAR('Sales Data file xlsx'[Calender Date]) = 2025 &&
        'Sales Data file xlsx'[Calender Date] >= EOMONTH(DATE(2025, MONTH(TODAY()), 1), -4) + 1 &&
        'Sales Data file xlsx'[Calender Date] < EOMONTH(DATE(2025, MONTH(TODAY()), 1), -1) + 1
    )
)

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,
Sahir Maharaj
Data Scientist | Data Engineer | Data Analyst | AI Engineer
P.S. Want me to build your Power BI solution? (Yes, its FREE!)
➤ Lets connect on LinkedIn: Join my network of 15K+ professionals
➤ Join my free newsletter: Data Driven: From 0 to 100
➤ Website: https://sahirmaharaj.com
➤ Email: sahir@sahirmaharaj.com
➤ Want me to build your Power BI solution? Lets chat about how I can assist!
➤ Join my Medium community of 30K readers! Sharing my knowledge about data science and artificial intelligence
➤ Explore my latest project (350K+ views): Wordlit.net
➤ 100+ FREE Power BI Themes: Download Now
LinkedIn Top Voice in Artificial Intelligence, Data Science and Machine Learning

Helpful resources

Announcements
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.