cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Helper II
Helper II

Total Value Column Measure

Hi guys,

 

I am trying to create a total values column with the total value (5930) appearing for each row.

The total value column i want to make should have 5,930 throughout all the rows but everytime i try to make a measure with such as sum(Values) , it ends up just giving me the value for each row rather than the value for every row.

Can anybody help?

1 ACCEPTED SOLUTION

Hi @Kote101,

 

Please modify that measure like below.

 

Measure 2 = CALCULATE(SUM('Table1'[Amount]),ALLSELECTED('Table1'))

Then it will show the sum of amount dynamically based on the filter.

 

Capture.PNG

 

Best  Regards,

Cherry

Community Support Team _ Cherry Gao
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

6 REPLIES 6
Resident Rockstar
Resident Rockstar

Hi @Kote101,

 

Please try the measure below.

 

Measure 2 = CALCULATE(SUM('Table1'[Amount]),ALL('Table1'))

Here is an example.

 

result.PNG

 

If you still need help, please share some data sample and your desired output so that we could help further on it.

 

Best  Regards,

Cherry

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

hi @v-piga-msft that solvesy issue though wouldnt that create a static non dynamic value. what if i wanted a totals measure like that but with just whatever value is filtered

Hi @Kote101,

 

Please modify that measure like below.

 

Measure 2 = CALCULATE(SUM('Table1'[Amount]),ALLSELECTED('Table1'))

Then it will show the sum of amount dynamically based on the filter.

 

Capture.PNG

 

Best  Regards,

Cherry

Community Support Team _ Cherry Gao
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

Thank you @v-piga-msft i couldnt be more happy with the response
Super User III
Super User III

Hi @Kote101

I'm afraid you provide too little info for a clear answer.

To get rid of the filter from the rows, try   SUM(ALL(YourTableName[Values]))

hi @AIB there isnt much context as i only want to be able to learn how to create a sum everything in a particular range defined by whatever is filtered or not. I saw this done in the definitive guide to dax though the way they did it seems to not yield the same results for me ( they just used a simple sum function and it seemed to ignore the row to row context of dax though i am not sure how )

Helpful resources

Announcements
secondImage

Congratulations!

We are excited to announce the Power BI Super Users!

Microsoft Ignite

Microsoft Ignite with Arun Ulag

Featured Session: Drive Data Culture with Power BI- Vision, Strategy & Roadmap. Register here https://myignite.microsoft.com #MSIgnite #PowerPlatform #Power BI ​

Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

secondImage

The largest Power BI virtual conference

100+ sessions, 100+ speakers, Product managers, MVPs, and experts. All about Power BI. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors