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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

single value for repeating values in table

I have a table 
ID   Values
1      $
1      $
2      %
2      %

I want to create a measure to display (Group values based on id)
1    $
2    %

1 ACCEPTED SOLUTION

Hi, @Anonymous 

Please try the below.

 

Amount Total with values =
VAR grouptable =
GROUPBY (
Amount,
Amount[id],
"@amounttotal", SUMX ( CURRENTGROUP (), Amount[amount] ),
"@value", MAXX ( CURRENTGROUP (), Amount[values] )
)
RETURN
CONCATENATEX ( grouptable, [@amounttotal] & [@value] )

 

 

Hi, My name is Jihwan Kim.

If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.

Linkedin: https://www.linkedin.com/in/jihwankim1975/

 

Picture6.png


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

View solution in original post

3 REPLIES 3
amitchandak
Super User
Super User

@Anonymous , if you use the ID in visual then it will.

ID and sum(Table[Value]) in visual that should work

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

I dont want to sum the value. I just want to create a measure to get what value id hold. and that i will use to concat in final o/p
table contains 
id   values   amount
1     $           500
1     $           250
2     %          10
2     %          20
I had created the measure for sum of amount. now i want final output like 
id   o/p
1    750$
2    30% 
like that

 

 

Hi, @Anonymous 

Please try the below.

 

Amount Total with values =
VAR grouptable =
GROUPBY (
Amount,
Amount[id],
"@amounttotal", SUMX ( CURRENTGROUP (), Amount[amount] ),
"@value", MAXX ( CURRENTGROUP (), Amount[values] )
)
RETURN
CONCATENATEX ( grouptable, [@amounttotal] & [@value] )

 

 

Hi, My name is Jihwan Kim.

If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.

Linkedin: https://www.linkedin.com/in/jihwankim1975/

 

Picture6.png


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.