Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
kriderjo
New Member

Way to hide text until item is selected

I'm trying to create a "details" section for a report that shows data about a selected item using text box values. The issue is that when nothing--or a filter that results in more than one row--the text values default to the "first" item of the column, showing a colletion of random values not relevant to each other. Is there any way I could make the text blank/hide it somehow without having to add a row to the data source? 

kriderjo_1-1713452239471.png - Incorrect Values

 

kriderjo_0-1713452230037.png- Correct Values

 

I'm open to creative ideas, aside from manipulating the data itself. I haven't been using PowerBI for very long so my scope is currently pretty narrow when it comes to fixing random little things like this.

 

1 ACCEPTED SOLUTION
jgeddes
Super User
Super User

You can create 'Calculate' measures that uses 'HASONEVALUE' on the project.
Something like should work for you.

Selected Customer =
IF(
HASONEVALUE('tableName'[ProjectColumn]),
MIN('tableName'[CustomerColumn]),
""
)

 




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





View solution in original post

2 REPLIES 2
jgeddes
Super User
Super User

You can create 'Calculate' measures that uses 'HASONEVALUE' on the project.
Something like should work for you.

Selected Customer =
IF(
HASONEVALUE('tableName'[ProjectColumn]),
MIN('tableName'[CustomerColumn]),
""
)

 




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





That works great, thanks for the help!

Helpful resources

Announcements
Fabcon_Europe_Social_Bogo

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

Check out the June 2024 Power BI update to learn about new features.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.