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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
tmullady
Regular Visitor

text in card

Is there any way to show text in a card? I only see the ability to count with text data

 

My data set uses UP or DOWN to show trends for YoY and Linked periods.

4 REPLIES 4
AmirKatz
Advocate I
Advocate I

Another way is to create a table (in the Query Editor) with two columns, one with the variable data and one with the fixed text.

For example, I needed to display the last refresh date of a report, so I created this single-row table:

 

= #table(type table[Date Last Refreshed=datetime, FixedText=text], {{DateTime.LocalNow(), "Last Refresh:"}})

 

and then, in the report, I added a multi-row card with the two columns.

Another possibility is to use a measure in the table instead of the fixed text column, but I guess it's the same effort for the developer and for PBI to display...

Greg_Deckler
Super User
Super User

Use a multi-row card. I use this to show text and control its formatting.

@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Measures can return text.

 

Capture.JPG

 

You could do something like:

MyTextMeasure =
IF(
    [YOY%] > 0
    ,"UP"
    ,"DOWN"
)

A feature I did not think was possible, this is something that will be so valuable to me!

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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