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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Jake_Neyu
Frequent Visitor

Unexpected behavior with SUMMARIZE

Hello,

 

In the measure 'AR total avg', I use 2 variables, 'ar_source' and 'agent_validate'

 

At lowest level of the hierarchy, variable 'ar_source' shows total leads of each source.

On the next level of the hierarchy, variable 'agent_validate' shows the sum of total leads of all sources.

 

However, variable 'agent_validate' shows 54893 leads which is incorrect, the correct number is 96512 (sum of total leads of all sources calculated by variable 'ar_source')

 

Please help me with this case :(.

 

Jake_Neyu_0-1653563250169.png

 

1 ACCEPTED SOLUTION
3 REPLIES 3
daXtreme
Solution Sage
Solution Sage

You should never perform any calculations in SUMMARIZE in measures. SUMMARIZE is such a complex function (in terms of behaviour) that Alberto Ferrari and Marco Russo strongly advise against performing calculations within it (they themselves never do it). Please, instead use the combination ADDCOLUMNS/SUMMARIZE. SUMMARIZE must only be used for grouping, nothing else, if you want to stay sane.

Hi mate,

 

Thanks for your advice, do you have any idea how I can apply ADDCOLUMNS with this case?

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 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.