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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
RohithGn
Helper I
Helper I

Aggregated Sum

Hi,

 

I have a table siilar to below - 

 

SourceYearcountyschoolReponseTotal surveys
Hight School2018AsasdfHigh Positive20
Hight School2018AsasdfPositive20
Hight School2018AsasdfNegative20
Hight School2018AdgrewHigh Positive43
Hight School2018AdgrewPositive43
Hight School2018AdgrewNegative43
Elementary2018AdgrewHigh Positive43
Elementary2018AdgrewPositive43
Elementary2018AdgrewNegative43
Elementary2018AsasdfHigh Positive20
Elementary2018AsasdfPositive20
Elementary2018AsasdfNegative20

 

When I am trying to sum the Total Surveys, it is summing up all the numbers in Total surveys column, I have slicers in my report for Source, year, School name, Response based on slicer selection, the sum should consider one total survey as total surveys are repetitive.

 

Any pointers are highly appreciated

 

Regards,

Rohith

2 ACCEPTED SOLUTIONS
Greg_Deckler
Community Champion
Community Champion

So, you will probably need a measure like:

 

Measure = 
SUMX(SUMMARIZE('Table',[Source],[Year],[county],[school],"__total",AVERAGE([Total surveys])),[__total])


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

@RohithGn,

 

The measure above seems to work. Here is a similar post for your reference.

Community Support Team _ Sam Zha
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

4 REPLIES 4
Greg_Deckler
Community Champion
Community Champion

So, you will probably need a measure like:

 

Measure = 
SUMX(SUMMARIZE('Table',[Source],[Year],[county],[school],"__total",AVERAGE([Total surveys])),[__total])


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Thanks for the reply Greg.

Here is my expected output:

By default the sum should be 20+43+20+43=126

If i select Highschool in my Source slicer, the result should be 20+43 =63

If i select Highschool and the County as AS, the result should be 20

If i select County as AS, the result should be 20(High School)+20(Elementary) = 40

and so on...

 

 

 

 

 

@RohithGn,

 

The measure above seems to work. Here is a similar post for your reference.

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
PattemManohar
Community Champion
Community Champion

@RohithGn Please post your expected output as well.





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

Proud to be a PBI Community Champion




Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

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

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.