Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare now
I have a Dax Measure as follows:
TotalSales:= SUM (Sales[Revenue])
I would like to use it on a Scorecard but instead of showing a single figure (say, 4,000), I would like to display as "4,000 is the Total Sales for the month".
So, basically, I want to attach the words "is the Total Sales for the month" to that Measure. Of course, that value will change whenever the user selects another month.
Is that possible? Or should I go by using another trick like a Text box (with the words "is the Total Sales for the month") next to the Scorecard.
Solved! Go to Solution.
@ah2020 , If Q&A is enabled you should be able to that easy in the text box.
If you create a measure like this it will become a text measure
TotalSales:= SUM (Sales[Revenue]) & " is the Total Sales for the month"
@ah2020 You have a few options here:
Option A: DAX only
Total Sales Text:= FORMAT( SUM (Sales[Revenue]), $#,0.00 ) & " is the Total Sales for the month"
Option B: Text box (aka smart narrative)
You can combine DAX measures and text in the same visual within a text box: https://docs.microsoft.com/en-us/power-bi/visuals/power-bi-visualization-smart-narrative#edit-the-su...
Copying DAX from this post? Click here for a hack to quickly replace it with your own table names
Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C
I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com
@ah2020 You have a few options here:
Option A: DAX only
Total Sales Text:= FORMAT( SUM (Sales[Revenue]), $#,0.00 ) & " is the Total Sales for the month"
Option B: Text box (aka smart narrative)
You can combine DAX measures and text in the same visual within a text box: https://docs.microsoft.com/en-us/power-bi/visuals/power-bi-visualization-smart-narrative#edit-the-su...
Copying DAX from this post? Click here for a hack to quickly replace it with your own table names
Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C
I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com
@ah2020 , If Q&A is enabled you should be able to that easy in the text box.
If you create a measure like this it will become a text measure
TotalSales:= SUM (Sales[Revenue]) & " is the Total Sales for the month"
Check out the October 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.
User | Count |
---|---|
115 | |
112 | |
105 | |
95 | |
58 |
User | Count |
---|---|
174 | |
147 | |
136 | |
102 | |
82 |