cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ClearRide
Frequent Visitor

How to make a column ignore slicer

This is my table: 

SalesTable

Person

Sales

Sales Missed

Missed Sale %

A

10

2

20%

B

20

1

5%

C

30

3

10%

 

The only measure in the table: Missed Sales % = Divide (sum(SalesTable[Sales]), sum(SalesTable[Sales missed])

I have a slicer and or button that changes the value of Sales and Sales Missed (let's say reduces Sales by 1), which in turn changes the value of Missed Sales %. Is there a way to keep Missed Sale % unchanged/static when I press that slicer/button?

1 ACCEPTED SOLUTION
aj1973
Community Champion
Community Champion

Hi @ClearRide 

Use this

Missed Sales % =
VAR _Div = Divide (sum(SalesTable[Sales]), sum(SalesTable[Sales missed])

RETURN
CALCULATE( _Div , ALLEXCEPT(SalesTable , SalesTable[Sales Missed], SalesTable[PersonSales] ))

 

Regards
Amine Jerbi

If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook

View solution in original post

1 REPLY 1
aj1973
Community Champion
Community Champion

Hi @ClearRide 

Use this

Missed Sales % =
VAR _Div = Divide (sum(SalesTable[Sales]), sum(SalesTable[Sales missed])

RETURN
CALCULATE( _Div , ALLEXCEPT(SalesTable , SalesTable[Sales Missed], SalesTable[PersonSales] ))

 

Regards
Amine Jerbi

If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook

Helpful resources

Announcements
Carousel_PBI_Wave1

2023 Release Wave 1 Plans

Power BI release plans for 2023 release wave 1 describes all new features releasing from April 2023 through September 2023.

Power BI Summit Carousel 2

Global Power BI Training

Make sure you register today for the Power BI Summit 2023. Don't miss all of the great sessions and speakers!

Thank you 2022 Review

2022 Monthly Feature Releases

We had a great 2022 with a ton of feature releases to help you drive a data culture.