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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
amandabus21
Helper V
Helper V

Summing a column

Hello,

 

I have a table with static values.

 

amandabus21_0-1714596786193.png

When I try to SUM these values, my values change (below):


amandabus21_1-1714596886646.png

 

Is there a way I can get the total of all the values?

 

Thanks!

 

1 ACCEPTED SOLUTION
v-kaiyue-msft
Community Support
Community Support

Hi @amandabus21 ,

 

Based on your description, I created the MEASUREMENT and put it into the table visual object, which shows the correct results.

_sum_quantity =
SUM('Table'[Quantity])

vkaiyuemsft_0-1714614883383.png

 

You're getting unexpected results, probably because some of the calculations are causing grouping calculations for the same values in the QUANTITY column. Alternatively, the table has a built-in aggregation function that you can use to sum directly.

vkaiyuemsft_1-1714614901114.png

 

If your Current Period does not refer to this, please clarify in a follow-up reply.

 

Best Regards,

Clara Gong

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
amandabus21
Helper V
Helper V

yes, this was a grouping problem, thank you!

v-kaiyue-msft
Community Support
Community Support

Hi @amandabus21 ,

 

Based on your description, I created the MEASUREMENT and put it into the table visual object, which shows the correct results.

_sum_quantity =
SUM('Table'[Quantity])

vkaiyuemsft_0-1714614883383.png

 

You're getting unexpected results, probably because some of the calculations are causing grouping calculations for the same values in the QUANTITY column. Alternatively, the table has a built-in aggregation function that you can use to sum directly.

vkaiyuemsft_1-1714614901114.png

 

If your Current Period does not refer to this, please clarify in a follow-up reply.

 

Best Regards,

Clara Gong

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

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.