Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
dosania
Helper II
Helper II

Card Visual only showing First and Last Values for text values

Hi,

 

I am trying to create a report for my sales team to allow them to look at Customer performance and details.

I want to use the Card Visual to show details such as email address, city, email address etc, which updates based on the customer name selected.

 

When I add one of the vlaues from my database, which has around 500,000 unique customer IDs, on to the card visual, it only shows the First or Last value from the entire database, and not the value for the customer selected.

 

Is it possible to use the Card visual to show this information, or would something else be better suited?

I have tried using the following DAX to select the value I would like; SELECTEDVALUE(<columnName>[, <alternateResult>]), however this does not seem to work properly.

 

Any help would be much appreciated.

 

Thanks!

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@dosania , Create a measure like

 

Meausre =

if(isfiltered(Table[customer]),"email = " & Table[email] & "address = " & Table[address] & "city = " & Table[city] ,blank())

 

refer : https://www.youtube.com/watch?v=hXg3kRFSGjA

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

3 REPLIES 3
amitchandak
Super User
Super User

@dosania , Create a measure like

 

Meausre =

if(isfiltered(Table[customer]),"email = " & Table[email] & "address = " & Table[address] & "city = " & Table[city] ,blank())

 

refer : https://www.youtube.com/watch?v=hXg3kRFSGjA

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
PhilipTreacy
Super User
Super User

Hi @dosania 

Download example PBIX with data and visuals shown below.

If you use a Table visual you can show customer details depending on what is selected e.g. in a Slicer.

With sample data like this

sample-cust-data.png

 

You can set up a table and a Slicer to display only the selected customer's details

sample-table.png

 

and if nothing is selected then there's a measure that displays nothing in the table.  This measure is added as a filter on the table

 

Measure1 = CALCULATE ( IF ( ISFILTERED ( 'Customers'[CustomerName] ), 1, 0 ), ALLSELECTED ( Customers ) )

 

Regards

Phil


If I answered your question please mark my post as the solution.
If my answer helped solve your problem, give it a kudos by clicking on the Thumbs Up.



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


parry2k
Super User
Super User

@dosania bast would be to create a measure if you select a customer, it should return the value otherwise blank, means if no customer is selected you don't see anything in the card or show some message like "select a customer"

 

Check my latest blog post Year-2020, Pandemic, Power BI and Beyond to get a summary of my favourite Power BI feature releases in 2020

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.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


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.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.