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

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

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