Forum Discussion

xiumi_hou's avatar
xiumi_hou
Post Partisan
6 years ago

How to format card

Dear all.

 

I have a dynamic sentense want to show in power BI. The sentense is long and may need three lines. Can I make the card automatic change the line for me? Can I fix the length of each line to make it the same with other sentence in my paragraph? Thank you 

3 Replies

  • Nathaniel_C's avatar
    Nathaniel_C
    Community Champion

    Hi xiumi_hou ,
    You could count the number of characters in the sentence after it has been created,  create measures that take some portion of it, and put it into a multiline card. Or enter a carriage return every so many characters. 

    Try using UNICHAR(10). For example: Column = "Line 1"& UNICHAR(10) & "Line 2".

     

    And make sure you have the "Word Wrap" option activate on your Card/Table/Matrix/etc.
    Let me know if you have any questions.

    If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos are nice too.
    Nathaniel