cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Megha3012
Helper V
Helper V

DAX

Hi All,

I have attached some screenshots and doinf that is straight forward in excel but can I know how to implement that in PowerBI?

 

Megha3012_0-1643216061228.png

Megha3012_1-1643216099071.png

 

Megha3012_3-1643216133701.png

 

As shown in the above screenshots, I would like to implement the same.

For eg: BD2 = BC2

            BD3 = BC3 + BD2

            BD4 = BC4 + BD3 and so on.

 

How can I implement that in PowerBI?

 

Any help is appreciated!

 

Thank you!

Megha

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Megha3012 ,Add an index column in power query then create a measure or column

 

Column = sumx(filter(Table, [index] <= earlier([Index]) ), [EUD] *[RM Cost])

 

measure

Column = sumx(filter(allselected(Table), [index] <= max([Index]) ), [EUD] *[RM Cost])

 

https://stackoverflow.com/questions/45715963/creating-an-index-column-for-power-bi

Did I answer your question? Mark my post as a solution! Appreciate your Kudos!! !!
Dashboard of My Blogs !! Connect on Linkedin
Want To Learn Power BI
Learn Power BI Beginners !! Advance Power BI Concepts !! Power BI For Tableau User !! Learn Power BI in Hindi !!
Proud to be a Super User!
!! Subscribe to my youtube Channel !!

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@Megha3012 ,Add an index column in power query then create a measure or column

 

Column = sumx(filter(Table, [index] <= earlier([Index]) ), [EUD] *[RM Cost])

 

measure

Column = sumx(filter(allselected(Table), [index] <= max([Index]) ), [EUD] *[RM Cost])

 

https://stackoverflow.com/questions/45715963/creating-an-index-column-for-power-bi

Did I answer your question? Mark my post as a solution! Appreciate your Kudos!! !!
Dashboard of My Blogs !! Connect on Linkedin
Want To Learn Power BI
Learn Power BI Beginners !! Advance Power BI Concepts !! Power BI For Tableau User !! Learn Power BI in Hindi !!
Proud to be a Super User!
!! Subscribe to my youtube Channel !!

Thank you so much! @amitchandak 

Helpful resources

Announcements
Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May 23 2022 episode 5 with aka link.jpg

The Power BI Community Show

Welcome to the Power BI Community Show! Jeroen ter Heerdt will talk about the importance of Data Modeling.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

Power BI Release May 2022 768x460.png

Check it out!

Click here to read more about the May 2022 updates!