cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
zivhimmel Member
Member

Use Bold characters based on condition

Hi,

Is there any way, in a calculated column or measure, to bold the text if some condition takes place.

Say, if the length of the string is lower than 10, use bold charachters?

Doesn't have to be bold, could be any other way that will make the text stand out.

Thanks.

 

1 ACCEPTED SOLUTION

Accepted Solutions
Super User
Super User

Re: Use Bold characters based on condition

If the string is in a measure you can do it.  In my example [Month_Name] is a measure

Month_Name = SELECTEDVALUE( Dates[Month Name] )

Then I have another measure for the formatting

Month Name Format = IF ( LEN ( [Month_Name] ) <= 5, "Red" )

That gets applied to the [Month_Name] measure.

stringformat.jpg

View solution in original post

2 REPLIES 2
Super User
Super User

Re: Use Bold characters based on condition

If the string is in a measure you can do it.  In my example [Month_Name] is a measure

Month_Name = SELECTEDVALUE( Dates[Month Name] )

Then I have another measure for the formatting

Month Name Format = IF ( LEN ( [Month_Name] ) <= 5, "Red" )

That gets applied to the [Month_Name] measure.

stringformat.jpg

View solution in original post

zivhimmel Member
Member

Re: Use Bold characters based on condition

Thanks @jdbuchanan71 !

Helpful resources

Announcements
Ask Amanda Anything Q&A

Ask Amanda Anything Q&A

Learn the answers to some of the questions asked during the Amanda Triple A event.

October 2019 Community Highlights

October 2019 Community Highlights

October was a busy month in the community. Read the recap article to learn about some of the events and content.

New Solution Badges

New Solution Badges

Two waves of brand new solution badges are coming! Read the article for more information on our new community badges.

Analytics in Azure virtual event

Analytics in Azure virtual event

Experience a limitless analytics service built to ingest, prep, manage, and serve data for immediate use in Power BI.

Users Online
Currently online: 161 members 1,610 guests
Please welcome our newest community members: