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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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