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
Anonymous
Not applicable

Card value corresponding to slicer value

Hi everyone, 

peiying_2-1607958058623.png

Question: If my slicer values are the ticker, how do i make it such that if i click XXX in my slicer, i would get a corresponding score of 54.714 in my card? Thank you.

Also, does it work if i replace card with gauge?

 

 

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

Hi  @Anonymous  ,

Here are the steps you can follow:

1. You can put the ticker and score columns directly into the table visual object, and then put the ticker column into the slicer to filter

v-yangliu-msft_0-1608080507866.jpeg

2. If you want to select a certain field of ticker, the corresponding value will be displayed. If there is no selection, the user-defined information will be displayed

You can write a DAX function and place it in the card:

Ticket_select =
var _select=SELECTEDVALUE('Table'[Ticker])
return
IF(_select=MAX('Table'[Ticker]),MAX('Table'[Score]),BLANK())

Result:

v-yangliu-msft_1-1608080507868.jpeg

You can downloaded PBIX file from here.

 

Best Regards,

Liu Yang

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

2 REPLIES 2
v-yangliu-msft
Community Support
Community Support

Hi  @Anonymous  ,

Here are the steps you can follow:

1. You can put the ticker and score columns directly into the table visual object, and then put the ticker column into the slicer to filter

v-yangliu-msft_0-1608080507866.jpeg

2. If you want to select a certain field of ticker, the corresponding value will be displayed. If there is no selection, the user-defined information will be displayed

You can write a DAX function and place it in the card:

Ticket_select =
var _select=SELECTEDVALUE('Table'[Ticker])
return
IF(_select=MAX('Table'[Ticker]),MAX('Table'[Score]),BLANK())

Result:

v-yangliu-msft_1-1608080507868.jpeg

You can downloaded PBIX file from here.

 

Best Regards,

Liu Yang

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

amitchandak
Super User
Super User

@Anonymous , sum(Table[Score]) as measure should give that ?

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.