Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hello,
Hope someone can help me. I have a slicer of products (for example 10 products)
Now I want in title (fx) of the visualisation see all the selected items from the slicer and when you don't select a product in the slicer than the text "all product".
I tried the measure
Title_Product = "Product : "& if(hasonevalue(‘Product[Productcode]),selectedvalue(' Product[Productcode]), concatenatex('Product,'Product[Productcode],","))
When notihing is selected I got the names of the 10 products... I want then tot see "all products"
Thanks for reaction!
Solved! Go to Solution.
try this:
try this:
Try
Title text =
VAR NumSelectedProducts =
COUNTROWS ( ALLSELECTED ( 'Product' ) )
VAR NumAllProducts =
COUNTROWS ( ALL ( 'Product' ) )
VAR Result =
IF (
NumSelectedProducts = NumAllProducts,
"All products",
CONCATENATEX ( 'Product', 'Product'[Product code], ", " )
)
RETURN
Result
User | Count |
---|---|
25 | |
11 | |
8 | |
7 | |
7 |
User | Count |
---|---|
24 | |
13 | |
12 | |
10 | |
6 |