The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
I have created a parameter to use as a filter to remove names when demostrating the application.
This works in charts or tables to display the actual name or the anonomised name but doesnt seem to work in the title.
I use the dax below in the title formula to dynamically change the title but it does nothing.
If I use the actual fields without parameters the dax works ok.
The only thing I can think of is , is there a DAX statment for 'Show Values of Selected Field'
Paramter
Filter on all pages
Title change of visual using the dax below
DAX
Name =
VAR ConCat =
CALCULATE (
CONCATENATEX (
VALUES ( '-Anonymous Name'[Name] ),
'-Anonymous Name'[Name] ,
", "
)
)
VAR IsItFiltered =
IF ( ISFILTERED ( '-Anonymous Name'[Name] ), ConCat, "ALL NAMES" )
RETURN
IsItFiltered
Solved! Go to Solution.
is there a DAX statment for 'Show Values of Selected Field'
Short answer is no. Long answer is that you can collect the selected parameters and then harvest all the values from these parameters (assuming they are materialized), but there is no guarantee about the filter context.
Hi @CEllis ,
You can try replacing '-anonymous' [name] with '-anonymous' [parameter field]
Name_measure =
VAR ConCat =
CALCULATE (
CONCATENATEX (
VALUES ( 'Table'[Name]),
'Table'[Name],
", "
)
)
VAR IsItFiltered =
IF ( ISFILTERED('-Anonymous Name'[Parameter Fields]), ConCat, "ALL NAMES" )
RETURN
IsItFiltered
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
is there a DAX statment for 'Show Values of Selected Field'
Short answer is no. Long answer is that you can collect the selected parameters and then harvest all the values from these parameters (assuming they are materialized), but there is no guarantee about the filter context.
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
User | Count |
---|---|
110 | |
78 | |
66 | |
52 | |
51 |
User | Count |
---|---|
127 | |
116 | |
78 | |
64 | |
63 |