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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. 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
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! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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