Reply
RJ_KON
Helper I
Helper I

Ignore measure when slicer is selected

Hi Community, I would like my measure in table to ignore when slicer is selected.

Below is my measure which is calculating previous month income based on week ranks and is showing blank when slicer is selected

Last period Income =
VAR CW= MIN('Calendar'[WeekRank])
VAR Cal1 = CALCULATE([SalesIncome],'Calendar'[WeekRank]=CW+148,
REMOVEFILTERS('Calendar'[Financial Week]))
RETURN Cal1
 
My slicer is using calendar financial week column
 

Thank you in advance for any suggestions/advices.

RV

2 ACCEPTED SOLUTIONS
govindarajan_d
Super User
Super User

Hi @RJ_KON,

 

In your formula, you need to apply the filter for CW variable as well:

VAR CW = CALCULATE(MIN('Calendar'[WeekRank]),REMOVEFILTERS('Calendar'[Financial Week]))

View solution in original post

Hi Govindarajan, it worked.

 

Thank you

RV

View solution in original post

2 REPLIES 2
govindarajan_d
Super User
Super User

Hi @RJ_KON,

 

In your formula, you need to apply the filter for CW variable as well:

VAR CW = CALCULATE(MIN('Calendar'[WeekRank]),REMOVEFILTERS('Calendar'[Financial Week]))

Hi Govindarajan, it worked.

 

Thank you

RV

avatar user

Helpful resources

Announcements
March PBI video - carousel

Power BI Monthly Update - March 2025

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

March2025 Carousel

Fabric Community Update - March 2025

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

Top Solution Authors (Last Month)
Top Kudoed Authors (Last Month)