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
AlessandroBet
Resolver I
Resolver I

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
Resolver I
Resolver I

Many thanks. It works fine

View solution in original post

7 REPLIES 7
AlessandroBet
Resolver I
Resolver I

Many thanks. It works fine

AlessandroBet
Resolver I
Resolver I

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
Resolver I
Resolver I

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
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.