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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
Etienne_1995
Frequent Visitor

summarize value by grouping

Hi there

 

I'd like to get the sum of the Column "Investment Budget Nr", without beeing split up into the value from the column "ID".

I tried it with SUMX and SUMMARIZE, but it still showed up the split up values, instead of the grouped sum of the Investment Budget Nr.

 

Etienne_1995_1-1708728457397.png

SUMX(

    SUMMARIZE(
    'Investment Request',
    'Investment Request'[Investment Budget Nr],
    'Investment Request'[Effective Price]),
    [Effective Price]
)

Any help would be appreciated.
1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Etienne_1995 ,

 

I made simple samples and you can check the results below:

vtianyichmsft_0-1708924879695.png

Total by Nr = var _t = ADDCOLUMNS('Table',"Total by Nr",SUMX(FILTER(ALL('Table'),[Investment Budget Nr]=EARLIER([Investment Budget Nr])),[Effective Price]))
RETURN SUMX(_t,[Total by Nr])

 

An attachment for your reference. Hope it helps!

 

Best regards,
Community Support Team_ Scott Chang

 

If this post helps then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @Etienne_1995 ,

 

I made simple samples and you can check the results below:

vtianyichmsft_0-1708924879695.png

Total by Nr = var _t = ADDCOLUMNS('Table',"Total by Nr",SUMX(FILTER(ALL('Table'),[Investment Budget Nr]=EARLIER([Investment Budget Nr])),[Effective Price]))
RETURN SUMX(_t,[Total by Nr])

 

An attachment for your reference. Hope it helps!

 

Best regards,
Community Support Team_ Scott Chang

 

If this post helps then please consider Accept it as the solution to help the other members find it more quickly.

qqqqqwwwweeerrr
Solution Sage
Solution Sage

Hi @Etienne_1995 

 

If you could share the expected output that would be easy to calculate. Still if my understanding is clear you need total sum of  Investment Budget Nr but not at Single ID level but for all the id's. please see the below output.

qqqqqwwwweeerrr_0-1708751966017.png

for this yor can assume catgeory month is one unique id. and to calculate this you need to create this measure

Measure = CALCULATE(SUM(Sheet1[Value]),ALL())
 
or you take help from this video also: https://youtu.be/C8jjjujFeTE?si=_D2bo6-lCS6Wc55w
 
Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Check for more intersing solution here: https://www.youtube.com/@letssolveproblem


Regards

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

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.

Top Solution Authors