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 need to create a search bar on power bi.
The user inputs ID, which filters a table viz I have created.
The search bar must not have a drop down feature.
The result should only display table values for the ID typed in.
If no ID is typed in, the table must remain EMPTY.
I have tried using slicer and text filter add in.
However, when cleared, the entire table contents are visible.
Solved! Go to Solution.
You could use Bookmarks to save a version of report with blank table. WHen the Clear button is pressed, it goes to the bookmark.
Create report bookmarks in Power BI to share insights and build stories - Power BI | Microsoft Learn
Mastering Power BI Bookmarks - YouTube
Hi @Anonymous ,
You might try the what-if parameter.
Here is my sample data:
I create a What-if parameter here:
Close here and the slicer will only have a search bar:
Then use the DAX below to create a new measure in the data table:
SelectedData =
IF(
SELECTEDVALUE('Table'[ID], 0) = 'Parameter'[Parameter Value],
1,
0
)
Apply 'Filters on this visual' as shown below:
The final result is shown below:
Without input:
Input 1:
Best Regards,
Dino Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous ,
You might try the what-if parameter.
Here is my sample data:
I create a What-if parameter here:
Close here and the slicer will only have a search bar:
Then use the DAX below to create a new measure in the data table:
SelectedData =
IF(
SELECTEDVALUE('Table'[ID], 0) = 'Parameter'[Parameter Value],
1,
0
)
Apply 'Filters on this visual' as shown below:
The final result is shown below:
Without input:
Input 1:
Best Regards,
Dino Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
You could use Bookmarks to save a version of report with blank table. WHen the Clear button is pressed, it goes to the bookmark.
Create report bookmarks in Power BI to share insights and build stories - Power BI | Microsoft Learn
Mastering Power BI Bookmarks - YouTube
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 July 2024 Power BI update to learn about new features.
User | Count |
---|---|
115 | |
112 | |
69 | |
48 | |
43 |
User | Count |
---|---|
188 | |
87 | |
77 | |
74 | |
60 |