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! Learn more

Reply
AlessandroBet
Helper V
Helper V

Converting excel formula to DAX

Hi,

i need to convert a simple excel formula to DAX

The column B reads from column A + previous value

It is a accumulated sum

Cell B2= A2

Cell B3= A3+B2

Cell B4 =A4+B3

......etc

Immagine 2021-01-02 145625.png

 

1 ACCEPTED SOLUTION
AlessandroBet
Helper V
Helper V

Many thanks. It works fine

View solution in original post

7 REPLIES 7
AlessandroBet
Helper V
Helper V

Many thanks. It works fine

AlessandroBet
Helper V
Helper V

It doesn't work. I think there are some syntax errors inside your formula

I have replaced the "sheet1" with my table

"Syntax errors in my formula"! I have showed you the result.

did you put the name of the column correctly?

I think there is a space after Turnover

aj1973_0-1609606168367.png

Delete the space

 

 

Regards
Amine Jerbi

If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook

aj1973
Community Champion
Community Champion

@AlessandroBet 

Did the formula solve your issue?

If so please mark the topic as solved for the community.

 

Regards
Amine Jerbi

If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook

AlessandroBet
Helper V
Helper V

Yes i have the column "A" and i have to build the column "B" with DAX function

Voilà

aj1973_0-1609600223518.png

here is the measure, 

Total Turnover = CALCULATE(SUM(Sheet1[Turnover]), FILTER(
        ALLSELECTED(Sheet1),
        ISONORAFTER(Sheet1[Turnover], MAX(Sheet1[Turnover]), DESC)
)
)

 

Regards
Amine Jerbi

If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook

aj1973
Community Champion
Community Champion

Hi @AlessandroBet 

Do you have a date column?

 

Regards
Amine Jerbi

If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook

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.