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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
Anonymous
Not applicable

How to add braces to a count from 1 column with another using power bi desktop

Hello,

 

I need to concatenate 2 count in 1 field and have the 2nd count into brackets.

 

For example:

 

Quarter   Region      Extra work done (0 - No, 1- Yes)

Q2 2024  APAC              0

Q3 2024  AMER             1

Q4 2024  EMEA             1

Q2 2024  APAC              1

Q3 2024  AMER             1 

 

so my final output should show as a pivot with Region on the rows and count of of work done by quarter on the right plus (extra work done). It basically counts the the number of times region is used in the row plus the count of 1's as the extra work done for that region. Appreciate any help on this please

 

Region        Q2 2024       Q3 2024         Q4 2024

APAC               0                1(2)                 0

EMEA              2(4)            3(1)                 2(1)

AMER              2(2)            7(4)                 3(0)

2 ACCEPTED SOLUTIONS
dharmendars007
Super User
Super User

Hello @Anonymous , 

 

You can create 2 measure and concatenate the same as one and add it to the Matrix Visual

 

Measure 1.  Total Count = COUNTROWS('YourTable')

 

Measure 2.  Extra Work Count = CALCULATE(COUNTROWS('YourTable'), 'YourTable'[Extra work done] = 1)

 

Concatenated Measure

 

Concatenated Measure =
VAR Total = [Total Count]
VAR ExtraWork = [Extra Work Count]
RETURN
Total & "(" & ExtraWork & ")"

 

If you find this helpful , please mark it as solution which will be helpful for others and Your Kudos/Likes 👍 are much appreciated!

 

Thank You

Dharmendar S

LinkedIN 

View solution in original post

Anonymous
Not applicable

Hi @Anonymous 

Did the solution @dharmendars007  offeded help you solve the problm, if it helps, you can consider to accept it as a solution so that more user can refer to.

 

Best Regards!

Yolo Zhu

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @Anonymous 

Did the solution @dharmendars007  offeded help you solve the problm, if it helps, you can consider to accept it as a solution so that more user can refer to.

 

Best Regards!

Yolo Zhu

dharmendars007
Super User
Super User

Hello @Anonymous , 

 

You can create 2 measure and concatenate the same as one and add it to the Matrix Visual

 

Measure 1.  Total Count = COUNTROWS('YourTable')

 

Measure 2.  Extra Work Count = CALCULATE(COUNTROWS('YourTable'), 'YourTable'[Extra work done] = 1)

 

Concatenated Measure

 

Concatenated Measure =
VAR Total = [Total Count]
VAR ExtraWork = [Extra Work Count]
RETURN
Total & "(" & ExtraWork & ")"

 

If you find this helpful , please mark it as solution which will be helpful for others and Your Kudos/Likes 👍 are much appreciated!

 

Thank You

Dharmendar S

LinkedIN 

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.