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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
jacky201995
Frequent 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
Super User

@jacky201995 , Create a new column like

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

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

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.