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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
Qianru221
Helper II
Helper II

Card Visualization shows the wrong information

Hi All

 

I plotted a graph showing price changes of the company products against time.

I added one product filter.

I also added a Card visual, which shows the product name when one of the products in the product filter is selected. (I used it as the title of the graph so that the reader knows the price change against time belongs to which product.)

 

However the problem now is that when no product is selected in the filter, the Card always shows the 1st product, which is obviously wrong. The price changes is then the average price of all the product.

 

Capture.PNG

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Would it be possible to make the card to show blank when no product is selected in the filter and shows the product name when one product is chosen?

 

Thank you in advance.  

2 ACCEPTED SOLUTIONS
Zubair_Muhammad
Community Champion
Community Champion

Hi @Qianru221

 

Try this MEASURE

 

=
IF ( ISFILTERED ( TableName[Product] ), SELECTEDVALUE ( TableName[Product] ) )

View solution in original post

JoHo_BI
Responsive Resident
Responsive Resident

Hi Qianru, 

 

You'll need to use a measure here, and a formula like the following:

 

Selected Product = IF(HASONEVALUE(Table[Product]),VALUES(Table[Product]),"Multiple Products Selected!")

 

Hope that helps! 

View solution in original post

2 REPLIES 2
JoHo_BI
Responsive Resident
Responsive Resident

Hi Qianru, 

 

You'll need to use a measure here, and a formula like the following:

 

Selected Product = IF(HASONEVALUE(Table[Product]),VALUES(Table[Product]),"Multiple Products Selected!")

 

Hope that helps! 

Zubair_Muhammad
Community Champion
Community Champion

Hi @Qianru221

 

Try this MEASURE

 

=
IF ( ISFILTERED ( TableName[Product] ), SELECTEDVALUE ( TableName[Product] ) )

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors