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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
ashraparas
Helper II
Helper II

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 @ashraparas , 

 

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

v-xinruzhu-msft
Community Support
Community Support

Hi @ashraparas 

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
v-xinruzhu-msft
Community Support
Community Support

Hi @ashraparas 

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 @ashraparas , 

 

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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