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
geroagostini
Helper I
Helper I

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