cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
geroagostini
Regular Visitor

Link a measure to a slicer

hi everyone! Please i need help!!

 

 I need to create a card that contains a measure that is opposite related to a slicer.

 For example, if i have a seller name selected on the slicer, i need the card to give me all the sales of the sales force EXCEPT the one selected on the slicer. How can i do that?

1 ACCEPTED SOLUTION
v-xinruzhu-msft
Community Support
Community Support

Hi @geroagostini 

You can refer to the following example.

The sample table

vxinruzhumsft_1-1674784380836.png

 

Create a new table to put the employee to the table

 

Table 2 = SUMMARIZE('Table',[Employee])

 

vxinruzhumsft_0-1674784296415.png

Then put the new column to the slicer

and create a measure to the old table

 

Sum_Sales = IF(ISFILTERED('Table 2'[Employee]),CALCULATE(SUM('Table'[Sales]),FILTER('Table',[Employee]<>MAX('Table 2'[Employee]))),SUM('Table'[Sales]))

 

Output

vxinruzhumsft_2-1674784426335.png

 

vxinruzhumsft_3-1674784433084.png

 

Best Regards!

Yolo Zhu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-xinruzhu-msft
Community Support
Community Support

Hi @geroagostini 

You can refer to the following example.

The sample table

vxinruzhumsft_1-1674784380836.png

 

Create a new table to put the employee to the table

 

Table 2 = SUMMARIZE('Table',[Employee])

 

vxinruzhumsft_0-1674784296415.png

Then put the new column to the slicer

and create a measure to the old table

 

Sum_Sales = IF(ISFILTERED('Table 2'[Employee]),CALCULATE(SUM('Table'[Sales]),FILTER('Table',[Employee]<>MAX('Table 2'[Employee]))),SUM('Table'[Sales]))

 

Output

vxinruzhumsft_2-1674784426335.png

 

vxinruzhumsft_3-1674784433084.png

 

Best Regards!

Yolo Zhu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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!

BizApps LATAM 2023

Business Application LATAM Summit 2023

Join the biggest FREE Business Applications Event in LATAM this February.

Power Platform Bootcamp

Global Power Platform Bootcamp

In this bootcamp we will deep-dive into Microsoft’s Power Platform stack with hands-on sessions and labs, delivered to you by experts and community leaders.