Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Is there a way to modify the total to a string value such as "SEA"?
the country column consists of a different countries and i want to be able to show SEA for SEA countries, Europe for EU countries etc.
Much appreciation for the help!
Solved! Go to Solution.
Hi @rgoo - In Power BI does not directly allow you to changing the text in the total row independently of the detail rows. The measure logic should handle how totals are represented.
Create a sepearate measure for SEA and Europe and then combine them both.
TotalSEA =
IF(
HASONEVALUE('YourTableName'[country]) &&
COUNTROWS(FILTER('YourTableName', 'YourTableName'[country] IN {"Thailand", "Vietnam", "Indonesia"})) > 0,
"SEA",
BLANK()
)
Measure for Europe
TotalEurope =
IF(
HASONEVALUE('YourTableName'[country]) &&
COUNTROWS(FILTER('YourTableName', 'YourTableName'[country] IN {"Germany", "France", "Spain"})) > 0,
"Europe",
BLANK()
)
Combine them both using below measure:
TotalRegion =
IF(
ISFILTERED('YourTableName'[country]),
SWITCH(
TRUE(),
COUNTROWS(FILTER('YourTableName', 'YourTableName'[country] IN {"Thailand", "Vietnam", "Indonesia"})) > 0, "SEA",
COUNTROWS(FILTER('YourTableName', 'YourTableName'[country] IN {"Germany", "France", "Spain"})) > 0, "Europe",
"Other"
),
"Total Region" // This value will appear in the total row
)
if any further modifications on region, you have to adjust it in combined measure only.
add country to the column and total region measure to your table.
Replace YourTableName as per your table details and column information at your end.
Did I answer your question? Mark my post as a solution! This will help others on the forum!
Appreciate your Kudos!!
Proud to be a Super User! | |
Hi @rgoo - In Power BI does not directly allow you to changing the text in the total row independently of the detail rows. The measure logic should handle how totals are represented.
Create a sepearate measure for SEA and Europe and then combine them both.
TotalSEA =
IF(
HASONEVALUE('YourTableName'[country]) &&
COUNTROWS(FILTER('YourTableName', 'YourTableName'[country] IN {"Thailand", "Vietnam", "Indonesia"})) > 0,
"SEA",
BLANK()
)
Measure for Europe
TotalEurope =
IF(
HASONEVALUE('YourTableName'[country]) &&
COUNTROWS(FILTER('YourTableName', 'YourTableName'[country] IN {"Germany", "France", "Spain"})) > 0,
"Europe",
BLANK()
)
Combine them both using below measure:
TotalRegion =
IF(
ISFILTERED('YourTableName'[country]),
SWITCH(
TRUE(),
COUNTROWS(FILTER('YourTableName', 'YourTableName'[country] IN {"Thailand", "Vietnam", "Indonesia"})) > 0, "SEA",
COUNTROWS(FILTER('YourTableName', 'YourTableName'[country] IN {"Germany", "France", "Spain"})) > 0, "Europe",
"Other"
),
"Total Region" // This value will appear in the total row
)
if any further modifications on region, you have to adjust it in combined measure only.
add country to the column and total region measure to your table.
Replace YourTableName as per your table details and column information at your end.
Did I answer your question? Mark my post as a solution! This will help others on the forum!
Appreciate your Kudos!!
Proud to be a Super User! | |
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
63 | |
62 | |
52 | |
39 | |
24 |
User | Count |
---|---|
84 | |
57 | |
45 | |
42 | |
37 |