Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
Hi
I am looking to add a text value to a Calculate value.
CALCULATE(DISTINCTCOUNT('Report Results'[Critical areas])
Solved! Go to Solution.
@Lauraeire_81 To achieve this in DAX, you can use the & operator to concatenate text strings with your calculated value
"The total is " & CALCULATE(DISTINCTCOUNT('Report Results'[Critical areas])) & " critical areas"
Proud to be a Super User! |
|
Another option is use a dynamic format string. The advantage of this approach is that the measure still returns a numeric value, which means you can use it in chart visualisations and also use it in other measures, e.g. to calculate averages.
To use a dynamic format string, choose Dynamic from the Format dropdown and use a DAX formula like
"The total is " & FORMAT(SELECTEDMEASURE(), "#,0") & " critical areas."
Another option is use a dynamic format string. The advantage of this approach is that the measure still returns a numeric value, which means you can use it in chart visualisations and also use it in other measures, e.g. to calculate averages.
To use a dynamic format string, choose Dynamic from the Format dropdown and use a DAX formula like
"The total is " & FORMAT(SELECTEDMEASURE(), "#,0") & " critical areas."
To append a text string to a numeric value (like adding the label "critical error" to a number), you can use the & operator in DAX to concatenate text and numbers.
However, since you're working with a numeric measure, you'll first need to convert that number to text using FORMAT().
"The total is " & FORMAT([Report Result], "0.0") & " - critical error"
This will return something like: "The total is 98.5-critical error"
If you're using this in a card visual or tooltip, this should display correctly. Just make sure your measure is of type text, especially if you’re mixing strings and numbers.
@Lauraeire_81 To achieve this in DAX, you can use the & operator to concatenate text strings with your calculated value
"The total is " & CALCULATE(DISTINCTCOUNT('Report Results'[Critical areas])) & " critical areas"
Proud to be a Super User! |
|
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 63 | |
| 55 | |
| 41 | |
| 17 | |
| 14 |
| User | Count |
|---|---|
| 97 | |
| 80 | |
| 35 | |
| 29 | |
| 25 |