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
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

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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