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
Anonymous
Not applicable

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

@Anonymous ,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

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@Anonymous ,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

Anonymous
Not applicable

Thank you so much! @amitchandak 

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.

Top Solution Authors