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
Rince91
Helper I
Helper I

Visualisation of a measure that returns a string

I have this measure:

 

Summary = "A total of " + [Total_risks] + " risks have been identified. Of these risks " + [Total_Closed_Risks] + " have been closed. With " + [Total_Open_risks] + " still open and ongoing."

 

It uses a couple of other measures to produce a dynamic string based on the number of risks for that customer.

 

What visulisation can i use that will display the string as formatted above?

 

I have tried a card, but that doesn't work. I have tried using a text box and adding a value that links to the measure. But nothing seems to work.

 

Any ideas?

1 ACCEPTED SOLUTION
miTutorials
Super User
Super User

This works perfectly fine in a card, please see below.

 

miTutorials_0-1717590990684.png

 

View solution in original post

3 REPLIES 3
miTutorials
Super User
Super User

This works perfectly fine in a card, please see below.

 

miTutorials_0-1717590990684.png

 

Thanks i was using "+" instead of "&" changing that made it work!

rajendraongole1
Super User
Super User

Hi @Rince91 - Dynamic string you've created in your measure as a visualization, you can use a table or matrix visualization in power bi report.

Try as below:

 

Summary = "A total of " & FORMAT([Total_risks], "0") & " risks have been identified. Of these risks " & FORMAT([Total_Closed_Risks], "0") & " have been closed. With " & FORMAT([Total_Open_risks], "0") & " still open and ongoing."

 

Make sure that the calculated field is formatted as text/string in your visualization settings.

 

Did I answer your question? Mark my post as a solution! This will help others on the forum!
Appreciate your Kudos!!





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

Proud to be a Super User!





Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

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.