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

Join the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now

Reply
project101
Frequent Visitor

Runing Sum Filter

running sum m- query  The Code

 

( ) as list =>
let
pList = {1,2,3,4,5,6,7,8,9} ,
runSum=List.Generate(
()=>[ xx =0 , zz=pList{0} ],
each [xx] <=List.Count(pList) ,
each [ xx=[xx]+1 , zz = [zz] + pList{ [xx]+1 } ] , each [zz]
)
in
runSum

 the output will be {1,3,6,10,15,21,28 ...}

on filtering the list on index value >3

i have to start from  values {4,9,15,22...}

insted of {10,15,21,28}

 

it to work like ranking that recreate the index from start  or dax exp 

  ???

 

1 ACCEPTED SOLUTION
v-kelly-msft
Community Support
Community Support

Hi  @project101 ,

 

First convert list to table:

vkellymsft_0-1635127001561.png

Then remove errors,filter rows is greater than 3:

vkellymsft_1-1635127031458.png

 

And you will see:

vkellymsft_2-1635127042439.png

Check my sample .pbix file attached.

 

Best Regards,
Kelly

Did I answer your question? Mark my reply as a solution!

 

View solution in original post

1 REPLY 1
v-kelly-msft
Community Support
Community Support

Hi  @project101 ,

 

First convert list to table:

vkellymsft_0-1635127001561.png

Then remove errors,filter rows is greater than 3:

vkellymsft_1-1635127031458.png

 

And you will see:

vkellymsft_2-1635127042439.png

Check my sample .pbix file attached.

 

Best Regards,
Kelly

Did I answer your question? Mark my reply as a solution!

 

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.