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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Busno
Helper I
Helper I

How to create TotalYTD that not change by date filter

Hi everyone,

 

I have a problem. how can I sum number between 1 Jan 2020 - 31 Dec 2020 that not change by date filter.

 

on my table, I have a fixed column and a column that change by date filter.

 

Country Jan 2020- Dec 20202021 Selected month
A  
B  
C  
D  
E  

 

Help

 

Thank You

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Busno , Try like.  Use a date table

 

calculate(sum(Table[Value]), filter(all(Date), date[Date] >= date(2020,01,01) && date[Date] <= date(2020,12,31) ))

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@Busno , Try like.  Use a date table

 

calculate(sum(Table[Value]), filter(all(Date), date[Date] >= date(2020,01,01) && date[Date] <= date(2020,12,31) ))

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

@amitchandak 

 

It's work. !!

 

Thank you so much

 

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