Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi,
I have a stacked bar chart and on the X-axis I have a column "TotalCountDone", which I show the Maximize value.
This is working and showing the number 32.
What I want to do is to show this in the bar chart as "32(Done)", how can I combine Text to the number and display it like this ?
Solved! Go to Solution.
Hi @EaglesTony
Try creating a measure to dynamically generate data labels like this:
Detail =
VAR DoneValue = SUMX(FILTER('DataTable', 'DataTable'[SubCategory] = "Done"), 'DataTable'[Values])
VAR BacklogValue = SUMX(FILTER('DataTable', 'DataTable'[SubCategory] = "Backlog"), 'DataTable'[Values])
RETURN
IF(
HASONEVALUE('DataTable'[SubCategory]),
SWITCH(
VALUES('DataTable'[SubCategory]),
"Done", DoneValue & " (Done)",
"Backlog", BacklogValue & " (Backlog)"
),
BLANK()
)
Best Regards,
Jarvis Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @EaglesTony
Try creating a measure to dynamically generate data labels like this:
Detail =
VAR DoneValue = SUMX(FILTER('DataTable', 'DataTable'[SubCategory] = "Done"), 'DataTable'[Values])
VAR BacklogValue = SUMX(FILTER('DataTable', 'DataTable'[SubCategory] = "Backlog"), 'DataTable'[Values])
RETURN
IF(
HASONEVALUE('DataTable'[SubCategory]),
SWITCH(
VALUES('DataTable'[SubCategory]),
"Done", DoneValue & " (Done)",
"Backlog", BacklogValue & " (Backlog)"
),
BLANK()
)
Best Regards,
Jarvis Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thanks this worked!
What I need is to display within the bar 3(Done). I think I had this before, but not sure how it changed.
Hi @EaglesTony
Create a calculated column with below DAX
CombinedText = FORMAT(MAX('Table'[TotalCountDone]), "0") & "(Done)"The use this in x-axis of your bar chart. Then it'll display 32(Done)
Hope this helps
Thanks!
I put it on the X-axis, but it is just showing me the number, as the option to display it has Count.
Here is what I have:
Can you update your Power BI version to the latest version?
Proud to be a Super User! | |
Sure.
I have a column called "TotalDone", so I would create a measure as follows ?
TotalDoneDisplay = [field from table with the actual number] + "(Done)" ?
Proud to be a Super User! | |
I was able to use:
Turn off the value section
Yes, you will need to create a condition, you can use SWITCH function.
Proud to be a Super User! | |
I need to show Backlog and Done, the following in Red is the Backlog(even though it shows Done", the purple is the actual Done.
What I need is to show both of these in that bar as such:
Red would be "3(Backlog)" and Purple would be "32(Done)
Any ideas on this ?
Hi,
You can do it this way- Create a calculated column with the defintion you have and then put it in Detail sub section under data labels.
Proud to be a Super User! | |
I don't see that.
Under Data Labels I have:
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 97 | |
| 71 | |
| 50 | |
| 47 | |
| 44 |