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,
I'm trying to make a textbox that dynamically changes based on these slicers:
I'd like it to say something like:
"Development in ("Enhet Slicer") for ("Nøkkeltall Slicer"), ("Type slicer") in ("Kunde slicer") for ("Brand slicer")"
For Type, Brand and Kunde, i'd like it to say "all" when all options are picked and each option picked if all options aren't picked.
The enhet and nøkkeltall slicers are single-choise.
Please let me know if more information is needed. Hope it wasn't too difficult to understand.
Hi @Bobbys ,
The text box is a static result. If you want a dynamic result, you can use Card visual.
You can also create a measure to add fixed text.
Measure = SELECTEDVALUE('Table'[Slicer value])&" text123"
Add the measure to the card visual.
Measure = SELECTEDVALUE('Table'[Slicer value])&" text123 "&SELECTEDVALUE('Table (2)'[ Slicer value2])
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi there,
Apologies for the interference but I would like to have exactly that result but without using a slicer. Is it possible to have the filter applied on another visual to influence my selectedvalue()?
Thank you for your help,
Sam
Hello, this doesn't work with multiple option slicers. When I pick more than one option it turns blank in the text box.
@Bobbys I did something like this once: The Most Amazing, Mind Blowing Dynamic Slicer Titl... - Microsoft Power BI Community
Hello again, @Greg_Deckler. I've managed to use your DAX and it works for one of my slicers. However, I would like my text to be a combination of the slicers. Any idea how I can do that?
Hello @Greg_Deckler. I appreciate your effort. However, for a newbie PowerBI user, this is not very intuitive.
@Bobbys How about a simple version to start with:
Measure =
"Development in " & MAX('Enhet'[Column) & " for " & MAX("Nøkkeltall'[Column]) & ", " & MAX('Type'[Column]) & " in " MAX('Kunde'[Column]) & " for " & MAX('Brand'[Column])
More Complex Version =
VAR __Enhet = IF(COUNTROWS('Enhet') = COUNTROWS(ALL('Enhet')),"All",MAX('Enhet'[Column]))
RETURN
"Development in " & __Enhet & " for " & MAX("Nøkkeltall'[Column]) & ", " & MAX('Type'[Column]) & " in " MAX('Kunde'[Column]) & " for " & MAX('Brand'[Column])
Note, I have no idea what your actual table and column names are.
My columns are
Enhet (unit) - Can be either show a value or a volume
Nøkkeltall - Key measures. YTD, MAT etc, single choice.
Brand - Can be multiple choice.
Kunde - List of customers. Can be multiple choice.
Type - Shows the type of product. Large, small, etc. Can be multiple choice.
My table is called "Sheet1"
User | Count |
---|---|
76 | |
75 | |
45 | |
31 | |
27 |
User | Count |
---|---|
99 | |
89 | |
52 | |
48 | |
46 |