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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
gpiero
Skilled Sharer
Skilled Sharer

text box and a value come from a measure

Is it possibile combine a value come from a measure inside a text box?

 

for instace, let us suppose I would like to put a text box:

 

"Last week we have closed 745 ticket"  where 745 is the value come from  IDClosed = COUNTROWS(FILTER( etc etc....)

If I can...
2 ACCEPTED SOLUTIONS
ankitpatira
Community Champion
Community Champion

@gpiero Unfortunately you can't do that in text box but you can use Card visual and use your measure in that card visual.

View solution in original post

Sean
Community Champion
Community Champion

@gpiero This should work...

 

Text Measure = "Last week we have closed " & [IDClosed] & " tickets!"

See picture... In a Table and in a Card (works also in Matrix and Multi-row Card)

 

Text Measure4.png

View solution in original post

9 REPLIES 9
nathan-giullian
Regular Visitor

I'm sure this is a long overdue response, but you can use measures in a text box in Power BI by adding it as a value. It does take a while for the visual to recognize the measure but once it does you can save and it works great! You can see in the screenshot that once the measure is outlined in blue you can give the value a name and save it. Hopefully this helps 🙂

nathangiullian_0-1723691874370.png

 

MasonAldrich
New Member

To include a count of all rows in a text box, create a new column in the data that is just '[name] = 1' and then take the sum of this column in the text box value.

Anonymous
Not applicable

I know this is an old thread, but I was trying to do something similar by using a measure to update the title lines on all pages.  I found that the Advanced Card let me build a card that also allowed for greater formatting capabilities such as right justifying the text.  Anyone searching for a solution here might want to take a look.

SemG
Frequent Visitor

For anyone still searching for this, I have created an idea on ideas.powerbi.com to create variables in text boxes based on measures. Please upvote to get this feature added.

 

https://ideas.powerbi.com/forums/265200-power-bi-ideas/suggestions/33374140-using-measures-to-dynami...

Sean
Community Champion
Community Champion

@gpiero This should work...

 

Text Measure = "Last week we have closed " & [IDClosed] & " tickets!"

See picture... In a Table and in a Card (works also in Matrix and Multi-row Card)

 

Text Measure4.png

Anonymous
Not applicable

Hi @Sean  I just found your solution to combining text and a measure into a single measure. 

The measure I am including is a percentage: [Country of Residence %] which I have modelled to 2 decimal places and works fine outside of the below Measure it is 3.52%.

However when I use the below measure, the result shows the percentage as 3.52752016487226E-02

 

Measure = "Map represents "&[Country of Residence %]&" of Live users"

 Can you suggest anything?

 

Thanks!

Jemma

Anonymous
Not applicable

@Anonymous  - You could use something likw the below - 

Measure = "Map represents "&FORMAT([Country of Residence %], "#.#%")&" of Live users"

@Sean

great indeed.

This is the solution I was looking for.

Thanks again

If I can...
ankitpatira
Community Champion
Community Champion

@gpiero Unfortunately you can't do that in text box but you can use Card visual and use your measure in that card visual.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.