Forum Discussion

refint650's avatar
refint650
Helper III
2 years ago
Solved

adding text to measure

Hello All

 

I have two numeric measures.  In card visual so how i can display  like these   combination of both measures + custom text 

i.e  10 ( 0.6% of Total Reports)

1) Sum of Reports  value:10

2) % of Reports.  value ( 0.6%)

  • yourMeasure =

     

    var sumOfReports = [*reportSumMeasure*]

    var percentOfReports = [*reportPercentMeasure*]

     

    return sumOfReports & " (" & FORMAT(percentOfReports, "0.0%") & "% of Total Reports)"

1 Reply

  • arava's avatar
    arava
    Regular Visitor

    yourMeasure =

     

    var sumOfReports = [*reportSumMeasure*]

    var percentOfReports = [*reportPercentMeasure*]

     

    return sumOfReports & " (" & FORMAT(percentOfReports, "0.0%") & "% of Total Reports)"