cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
AmiraBedh
Super User
Super User

Display the value of the first column when selecting a row

I have the follwing table from an SSAS tabular model. I am using live connection : 

Employee EmployeeTarget

X               4598

Y                7655

Z                7008

 

I am using it in a table visual, I want when I select a row for example the first row for the employee X, 

I want to display in a card visual the name of the employee X.

How can I achive this ?

1 ACCEPTED SOLUTION
amirabedhiafi
Impactful Individual
Impactful Individual

MySelection = IF (( ISFILTERED(yourTable[Employee_Name])), SELECTEDVALUE(yourTable[Employee_Name]))

Amira Bedhiafi
Full Stack Business Intelligence Consultant @Capgemini

View solution in original post

2 REPLIES 2
parry2k
Super User
Super User

@AmiraBedh what @amirabedhiafi  suggested or just :

 

Selected Employee =
SELECTEDVALUE ( Table[Employee Name], "No or more than one employee selected" )

 

 

 

Follow us on LinkedIn and YouTube.gif to our YouTube channel

 

Learn about conditional formatting at Microsoft Reactor

My latest blog post The Power of Using Calculation Groups with Inactive Relationships (Part 1) (perytus.com) I would  Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!

 

Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.






Did I answer your question? Mark my post as a solution.

Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.





amirabedhiafi
Impactful Individual
Impactful Individual

MySelection = IF (( ISFILTERED(yourTable[Employee_Name])), SELECTEDVALUE(yourTable[Employee_Name]))

Amira Bedhiafi
Full Stack Business Intelligence Consultant @Capgemini

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.