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
haraldjw
Frequent Visitor

Calculate total year, ignoring selected date range

With which measure can I calculate the total of a selected year, ignoring a selected date range?

 

Explanation: In a orderbook I select a daterange to compare the orders of this year with last year.

But I also need a formula to calculate the total of the orderbook, ignoring the selected date range, but using the selected year.

1 ACCEPTED SOLUTION
Jihwan_Kim
Super User
Super User

Hi, @haraldjw 

I am not sure how your measure looks like, but try something like below.

 

New measure =
CALCULATE (
[your measure],
FILTER (
ALL ( 'your datetable' ),
[datetable year column] = MAX ( [your selected year] )
)
)

 

Hi, My name is Jihwan Kim.

 

If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.

 

Linkedin: https://www.linkedin.com/in/jihwankim1975/


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

View solution in original post

2 REPLIES 2
Jihwan_Kim
Super User
Super User

Hi, @haraldjw 

I am not sure how your measure looks like, but try something like below.

 

New measure =
CALCULATE (
[your measure],
FILTER (
ALL ( 'your datetable' ),
[datetable year column] = MAX ( [your selected year] )
)
)

 

Hi, My name is Jihwan Kim.

 

If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.

 

Linkedin: https://www.linkedin.com/in/jihwankim1975/


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.
negi007
Community Champion
Community Champion

@haraldjw you may create a seperate measure for each year like below

 

Vol_2019 = calculate(sum(volume), year=2019)

 

let me know if you need something else.




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



Proud to be a Super User!


Follow me on linkedin

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors