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

How do I create a YTD which is not affected by month filter

Hi. I would like to create a table showing monthly data and YTD data at the same time.

I want to put a month slicer so that monthly data can change based on month selection in the filter but YTD being unchanged.

 

taeyang_0-1664528280128.png

 

I created two calendar; 1.All months and  2 YTD months.

taeyang_1-1664527317547.png

taeyang_2-1664527330708.png (Max date for YTD is defined here)

 

From DB, I calculate the value in smaller scale (/1000) = "mValue"

taeyang_3-1664527426052.png

 

And my further steps to arrive at YTD

1. Calculate YTD value using TOTALYTD with Calendar dates (Defined period)

taeyang_5-1664527493199.png

2. Define Year in YTD value to arrive at "CYTD" and "PYTD"

taeyang_4-1664527473918.png

3. In filter, I put months from 1. All month Calendar as below.

taeyang_6-1664527796014.png

 

How can I fix the YTD figures so that it does not move along with the month filteration I have ?

 

 

 

2 REPLIES 2
taeyang
Frequent Visitor

Hi, Thanks for the tips. 

Where exactly should I enter the REMOVEFILTERS() ?

lbendlin
Super User
Super User

use REMOVEFILTERS()

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.