Forum Discussion

Nash2Bos's avatar
Nash2Bos
Icon for Helper I rankHelper I
1 year ago
Solved

How to unbold and bold certain rows

Hello i have a table that looks like ths

 

New York 1/3/20251/4/20251/5/20251/6/2025
 Plans5555
 Actuals4444
 Delta-1-1-1-1


how can I bold the Delta but keep New York/Plans/Actuals not bolded?

Thank you

  • kushanNa's avatar
    kushanNa
    1 year ago

    hi Nash2Bos 

     

    go to Image size setting of the matrix visual and you can change the height and width 

     

     

3 Replies

  • Hi Nash2Bos 

     

    you can do this using svg

     

    Please follow the following steps

     

    create following measure (fill up the measure values with your table name and column names )

     

    Deltas SVG = 
    VAR RowType = SELECTEDVALUE('YourTable'[RowType])
    VAR Val = FORMAT(SELECTEDVALUE('YourTable'[Value]), "General Number")
    
    VAR NormalText = 
        "data:image/svg+xml;utf8," & 
        "%3Csvg xmlns='http://www.w3.org/2000/svg' width='70' height='20'%3E" &
        "%3Ctext x='0' y='15' font-family='Segoe UI'%3E" & Val & "%3C/text%3E" &
        "%3C/svg%3E"
    
    VAR BoldText = 
        "data:image/svg+xml;utf8," & 
        "%3Csvg xmlns='http://www.w3.org/2000/svg' width='70' height='20'%3E" &
        "%3Ctext x='0' y='15' font-family='Segoe UI' font-weight='bold'%3E" & Val & "%3C/text%3E" &
        "%3C/svg%3E"
    
    RETURN
    IF(RowType = "Delta", BoldText, NormalText)

     

    Change the measure date category to image URL 

     

     

    the the measure to the matrix table values field and and that should work 

     

     

     

     

     

     

    • Nash2Bos's avatar
      Nash2Bos
      Icon for Helper I rankHelper I

      Hey kushanNa 

      Thank you that does work but it messes up my heights and widths. Is there a way to set padding using that to keep the numbers tight? 

      • kushanNa's avatar
        kushanNa
        Icon for Super User rankSuper User

        hi Nash2Bos 

         

        go to Image size setting of the matrix visual and you can change the height and width