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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

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
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 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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