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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
VaishnaviP
Frequent Visitor

Sum the Value of individual row value using DAX merasure

Hello Experts,

 

DateLineColumn 1Column 2Column 3Column 4Column 5Column 6Column 7Column 8
6/1/2024 0:00  A0.33016508.047144088
6/1/2024 0:00  B0.08039002144022
6/1/2024 0:00  C0.17040503.229144044
6/1/2024 0:00  D0.15018002.80614403.53.5
6/1/2024 0:00  E0.560285013.97144013.513.5
6/1/2024 0:00  F0.520225012.2144012.512.5
6/1/2024 0:00  G0.5601095023.686144013.513.5
6/1/2024 0:00  H0.5610650012.55144013.53.515625
6/1/2024 0:00  I0.3509008.7114408.58.5

 

 

This is a sample of my Data. Here I am calculating the values in Column 8 with the logic : ( (Column 6  - Column 2)/60) * Column 1.
With this, I am getting expected values in Column 8. Now in the Total, I want to get 69.01 as a value which is the sum of all rows in Column 8 but somehow not able to get this.

Any help on the solution will be deeply appreciated.

Thanks

2 ACCEPTED SOLUTIONS
rajendraongole1
Super User
Super User

Hi @VaishnaviP -  with above mentioned data,  able to get the value total 68.78. can you please cross check it?

 

Tested with one line "D" Column 8 we can achieve with 3.60 but in your data column 8 is show the wrong decimal.

 

rajendraongole1_0-1720241913574.png 

 

The above is achievable with total as mentioned., please check and let know.

 

Did I answer your question? Mark my post as a solution! This will help others on the forum!
Appreciate your Kudos!!

 

 





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

Proud to be a Super User!





View solution in original post

Ritaf1983
Super User
Super User

Hi @VaishnaviP 
The results of the calculation are not the same as in your image :

Ritaf1983_0-1720242748380.png

If this is the desired result you can use a formula like :

Column 8 Rita = Sumx('Table',(('Table'[Column 6]-'Table'[Column 2])/60)*'Table'[Column 1])
Ritaf1983_1-1720242852188.png

The Excel and PBIX is attached

if it is something else

please share a pbix or some dummy data that keep the raw data structure with expected results? It should help us clarify your scenario and test the coding formula.

How to Get Your Question Answered Quickly  

 

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

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

View solution in original post

3 REPLIES 3
Ashish_Mathur
Super User
Super User

Hi,

If column8 is a measure that you hae already written, then write this measure

Measure = sumx(values(Data[Line]),[Column8])

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Ritaf1983
Super User
Super User

Hi @VaishnaviP 
The results of the calculation are not the same as in your image :

Ritaf1983_0-1720242748380.png

If this is the desired result you can use a formula like :

Column 8 Rita = Sumx('Table',(('Table'[Column 6]-'Table'[Column 2])/60)*'Table'[Column 1])
Ritaf1983_1-1720242852188.png

The Excel and PBIX is attached

if it is something else

please share a pbix or some dummy data that keep the raw data structure with expected results? It should help us clarify your scenario and test the coding formula.

How to Get Your Question Answered Quickly  

 

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

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile
rajendraongole1
Super User
Super User

Hi @VaishnaviP -  with above mentioned data,  able to get the value total 68.78. can you please cross check it?

 

Tested with one line "D" Column 8 we can achieve with 3.60 but in your data column 8 is show the wrong decimal.

 

rajendraongole1_0-1720241913574.png 

 

The above is achievable with total as mentioned., please check and let know.

 

Did I answer your question? Mark my post as a solution! This will help others on the forum!
Appreciate your Kudos!!

 

 





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

Proud to be a Super User!





Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

Top Solution Authors