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! Request now

Reply
Anonymous
Not applicable

Accumulated total - show sequence of numbers added

 

Hi there,

 

I've built a table that features a "Creator" name and a distinct count of pieces created by the "Creator". As part of the competition I'm running, I give each "Creator" a raffle ticket for every piece they create.

 

I need to create the column "Raffle Ticket #s", which works like a running / accumulated total. Has anyone got a clue how I'd do this? Showing e.g. Adam Walford = "10-12" is preferred but not 100% necessary, so Adam Walford = "12" would be sufficient.    

Raffle Photo.png 

Kind regards,

 

Jordan 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous ,

 

Based on your description, you can do some steps as follows.

1. create an index column in Power Query Editor.

v-yuaj-msft_0-1616405211006.png

2. create a column.

Raffle Ticket #s = 

var x1=SUMX(FILTER(ALL('Creation'),[Index]<=EARLIER('Creation'[Index])),[# of pieces Created])

var x2=SUMX(FILTER(ALL('Creation'),[Index]<=EARLIER('Creation'[Index])-1),[# of pieces Created])

return

IF([Index]=1,1,1+x2)&"-"&x1

Result:

v-yuaj-msft_1-1616405237299.png

Hope that's what you were looking for.

Best Regards,

Yuna

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @Anonymous ,

 

Based on your description, you can do some steps as follows.

1. create an index column in Power Query Editor.

v-yuaj-msft_0-1616405211006.png

2. create a column.

Raffle Ticket #s = 

var x1=SUMX(FILTER(ALL('Creation'),[Index]<=EARLIER('Creation'[Index])),[# of pieces Created])

var x2=SUMX(FILTER(ALL('Creation'),[Index]<=EARLIER('Creation'[Index])-1),[# of pieces Created])

return

IF([Index]=1,1,1+x2)&"-"&x1

Result:

v-yuaj-msft_1-1616405237299.png

Hope that's what you were looking for.

Best Regards,

Yuna

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Jihwan_Kim
Super User
Super User

Hi,

Please correct me if I wrongly understood.

Is it ok with you to show me more information about creators?

For instance, it would be very much helpful if I can know the index number of each creator. Or, do you have any rules that set the order of creators? Or, Can I re-arrange the order of creators by "# of pieces created"?

If I can know one or some of the above information, I think I can try to create "Raffle Tickets #s"

 

Thank you.


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

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!

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.

Top Solution Authors