Showing results for 
Search instead for 
Did you mean: 
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. 





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,


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

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

March Update

Check it Out!

Click here to read more about the March 2021 Updates!


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.


Experience what’s next for Power BI

See the latest Power BI innovations, updates, and demos from the Microsoft Business Applications Launch Event.