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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
tvaishnav
Helper IV
Helper IV

Why are fields in greyed out when I try to add text to button conditionally?

I am using live connection.

 

I have a measure that returns text I want to use as a text on button. I am using button instead of card because card does not have alignment feature. But all the fields are greyed out. What could cause this?

 

tvaishnav_0-1644852445987.png

 

 

What is the best way to display a sentence in Power BI? The sentence includes DAX calculation.

6 REPLIES 6
parry2k
Super User
Super User

@tvaishnav you don't get the option to add measure in the textbox? When I add a textbox, I have the option to add values, do you see it on your end?

 

parry2k_0-1644853020118.png

 



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Hey @tvaishnav , to be able to add a measure as a tooltip, it must be of 'Text' format as tooltips accepts only that. Like in the image given below, please check what the format is set to and if Text it should not grey out. Thanks!

Twinkle_R_0-1659680459499.png

 

 

> Please give a thumbs up if my solution helped you!

I see that but can't seem to add value. I see this.

 

tvaishnav_0-1644866024266.png

 

I see that some versions of Power BI require to set language under Modeling tab but that option is greyed out as well since I am using live connection.

 

Hi, @tvaishnav 

 

There are many restrictions in live connection mode, Or you can try to have only variables in measure, and write the text content directly in the text box. (Add the text and measure to the textbox respectively)

If it doesn't work. In your case, If card visual can display the results you want, maybe you can consider using card in combination with the textbox.  (Use two visuals to display all the results you need)

 

Did I answer your question? Please mark my reply as solution. Thank you very much.
If not, please feel free to ask me.

 

Best Regards,

Community Support Team _Janey

parry2k
Super User
Super User

@tvaishnav you can use textbox and add measures to it

 

parry2k_0-1644852654375.png

 

 

Follow us on LinkedIn and YouTube.gif to our YouTube channel

 

Learn about conditional formatting at Microsoft Reactor

My latest blog post The Power of Using Calculation Groups with Inactive Relationships (Part 1) (perytus.com) I would  Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!

 

Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.

 



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Thanks for the response @parry2k . That was the first thing I tried but measure just won't get added. This is how my measure is defined.

EstCostvsFCCost = "Forecast Cost is " & Format(Divide(sum(Fact_ProjCost[Forecast Cost]) - sum(Fact_ProjCost[Estimated Cost]),sum(Fact_ProjCost[Estimated Cost]),0),"0%") & " away from Estimated cost."

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.