Forum Discussion
Dynamic Text
- 10 years ago
What you can do is to create a measure like
TextMeasure = "There are " + [numberoftickers] + " submitted by " + [numberofusers] + " and managed by " + [numberofadmins]
Now you can place this measure in a text box and that should show the desired result. Using text based measures is a handy technique in scenarios like this.
What you can do is to create a measure like
TextMeasure = "There are " + [numberoftickers] + " submitted by " + [numberofusers] + " and managed by " + [numberofadmins]
Now you can place this measure in a text box and that should show the desired result. Using text based measures is a handy technique in scenarios like this.
- vaibhav_osc9 years ago
Advocate I
The problem with using a card is that you lose the control over font over individual segments. For eg: if I wanted to display the measure value in bold and different color from rest of the text, or go to next line, I cant do that.
So basically, being able to concat text and measure directly in text box would be good.
- TheMayneLine8 years agoFrequent Visitor
The other problem with using a card is that you lose all formating capabilities. (or at least to the best of my knowledge).
I have not been able to left justify the text in a card.
- greggyb10 years ago
Resident Rockstar
SqlJason, & is the concatenation operator in DAX; + is not overloaded as in SQL.
As an additional point, depending on the measure being used to provide the numeric portion of this string, you may find a need for FORMAT(), which allows you to use a format string to alter the display of a numeric or date value.
- SqlJason10 years ago
Memorable Member
My bad, I forgot to test it before posting :).... Yes you will have to use the & operator as well as FORMAT() based on your needs as greggyb mentioned.
- SabineOussi10 years ago
Skilled Sharer
Yes, I'm aware about the language, thanks.
I was just hoping to have a more direct solution.
- Anonymous10 years agoNot applicable
Chris Webb has blogged about a fantastic solution that listens to slicer values to dynamically create a title. Very similar solution using a card with no category that "sits on top of" of chart, but a little more robust.
- MAAbdullah_475 years ago
Helper V
Hi But how can we pass it to text ?