Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

A new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.

Reply
rgoo
Frequent Visitor

modifying table total row value

rgoo_0-1717643389733.png

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!

1 ACCEPTED SOLUTION
rajendraongole1
Super User
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!!





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





View solution in original post

1 REPLY 1
rajendraongole1
Super User
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!!





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Helpful resources

Announcements
May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.