Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
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.
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.
Solved! Go to Solution.
Hi @Qianru221
Try this MEASURE
= IF ( ISFILTERED ( TableName[Product] ), SELECTEDVALUE ( TableName[Product] ) )
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!
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!
Hi @Qianru221
Try this MEASURE
= IF ( ISFILTERED ( TableName[Product] ), SELECTEDVALUE ( TableName[Product] ) )
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 48 | |
| 45 | |
| 41 | |
| 20 | |
| 17 |
| User | Count |
|---|---|
| 69 | |
| 64 | |
| 32 | |
| 31 | |
| 27 |