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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
sputnik76
Frequent Visitor

How to add two cells

This questions seems very simple but I can't figure it out. How do I add one specific cell to another in a series?  I want to add a cell to another cell from the previous row to sum up the numbers over the whole table.

 

 

In excel I would do it like this

 

= A1

= B1 + A1

= C1+ B1

 

etc 

4 REPLIES 4
v-lili6-msft
Community Support
Community Support

hi, @sputnik76 

It seems a rolling sum case, add a rank column and then use EARLIER Function create a formula like this:

CALCULATE(SUM([Value]),FILTER(ALL(table), (Rank=EARLIER(Rank)+1)||(Rank=EARLIER(Rank))))
 

If not your case, please share some data sample and expected output. Do mask sensitive data before uploading.

 

 

Best Regards,

Lin

 

 

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

Thanks I expect this is helpful but as a complete beginner I'm struggling with 'add a rank column'!  Can you elaborate or point me to a simple/clear resource?

HI, @sputnik76 

Please share some sample data and expected output.

Please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490

 

Best Regards,

Lin

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

Any hints or tips?

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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