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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
o59393
Post Prodigy
Post Prodigy

How to remove the date context from a measure

Hi all

 

I have the following table which gives me the start-up date of a project and its respective production capacity.


The issue I have is that the capacity value is just the month of the start-up. Instead, I need to have is the year to date production capacity. 

 

o59393_1-1706158861348.png

 

In the table above the 1.4 MM value is for Sept 2024, but instead I need to have the value from sept 2024 to dec 2024. 

 

I tried this dax but it returned me the same 1.4 MM UC.

 

 

Capacity YTD = 

CALCULATE(
    [Capacity UC],
    DATESYTD(
        'Hours by line - Official'[Start-Up Date]
    )
)

 

 

o59393_2-1706159117495.png

 

 

And also tried with ALL but it returned me 94 MM which equals to the period from jan 2024 to dec 2029. .

 

 

Capacity FY = 

CALCULATE(
    [Capacity UC],
    ALL(
        'Hours by line - Official'
    )
)

 

 

o59393_3-1706159380352.png

 

Any idea how to solve this?

 

Thanks.

1 REPLY 1
PijushRoy
Super User
Super User

Hi @o59393 

Please use REMOVEFILTER in place of ALL, find example
https://dax.guide/removefilters/

https://learn.microsoft.com/en-us/dax/removefilters-function-dax

 

If your requirement is solved, please make sure to MARK AS SOLUTION and help other users find the solution quickly. Please hit the LIKE button if this comment helps you.

Thanks
Pijush




Did I answer your question? Mark my post as a solution!
Appreciate your Like/Kudos

Proud to be a Super User!





Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.