cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
jacky201995
Regular Visitor

How to add rows value based on another rows??

Need to sum values of rows based on specific rows.  You can see below sample data and the expected result. 

 

 

jacky201995_0-1610612393649.png

 

3 REPLIES 3
v-yuaj-msft
Community Support
Community Support

Hi @jacky201995 ,

 

Based on your description, if there are multiple rows at with same value of Item of "Tea"group by Date, what kind of calculation logic do you want? Sum them up?
Sorry for that it's still not clear. 
Can you share some sample data and the expected result to have a clear understanding of your question? You can save your files in OneDrive, Google Drive, or any other cloud sharing platforms and share the link here. 

 

Best Regards,

Yuna

amitchandak
Super User IV
Super User IV

@jacky201995 , Create a new column like

if([Item] = "Soda" , [Input] + sumx(filter(Table, [item] ="Tea"),[Bad]), [Input])



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Dashboard of My Blogs !! YouTube Channel !! Connect on Linkedin

Proud to be a Super User!

How about if i have multiple rows at with same value of Item of "Tea"group by Date ?

Helpful resources

Announcements
PBI User Groups

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group!

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are You Ready?

Test your skills now with the Cloud Skills Challenge.

Top Solution Authors