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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
Sriku
Helper IV
Helper IV

consecutive days profit or loss for client

Hi,

 

I want to pick only those client who made profit in consecutive days 3 or more 30 days(date range should be dynamic)

Row IDOrder DateCustomer NameProfit
111/8/2018Claire Gute41.9136
211/8/2018Claire Gute219.582
36/12/2018Darrin Van Huff6.8714
410/11/2017Sean O'Donnell-383.031
510/11/2017Sean O'Donnell2.5164
66/9/2016Brosina Hoffman14.1694
76/9/2016Brosina Hoffman1.9656
86/9/2016Brosina Hoffman90.7152
96/9/2016Brosina Hoffman5.7825
106/9/2016Brosina Hoffman34.47
116/9/2016Brosina Hoffman85.3092
126/9/2016Brosina Hoffman68.3568
134/15/2019Andrew Allen5.4432
1412/5/2018Irene Maddox132.5922
1511/22/2017Harold Pawlan-123.858
1611/22/2017Harold Pawlan-3.816
1711/11/2016Pete Kriz13.3176
185/13/2016Alejandro Grove9.99
198/27/2016Zuschuss Donatelli2.4824
208/27/2016Zuschuss Donatelli16.011
218/27/2016Zuschuss Donatelli7.384
2212/9/2018Ken Black5.0596
2312/9/2018Ken Black15.6884
247/16/2019Sandra Flanagan-1.0196
259/25/2017Emily Burns240.2649
261/16/2018Eric Hoffmann4.2224
271/16/2018Eric Hoffmann11.7741
289/17/2017Tracy Blumstein-1665.0522
299/17/2017Tracy Blumstein-7.0532
309/17/2017Tracy Blumstein15.525
319/17/2017Tracy Blumstein1.1016
329/17/2017Tracy Blumstein9.7092
339/17/2017Tracy Blumstein-5.715
349/17/2017Tracy Blumstein3.546
3510/19/2019Matt Abelman9.9468
3 REPLIES 3
amitchandak
Super User
Super User

@Sriku , Have created a blog on similar topic Continuous-Streak , see if this can help. Need to consider how the streak is created

https://community.powerbi.com/t5/Community-Blog/Power-BI-Continuous-Streak-With-More-Than-a-One-Day-...

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

In my case I have only one date order date. How to build the consectuive date 3 days and flag as profit or loss for each client.

 

Do we need end date as well to follow your blog? My requirement let assume for month of Aug(30days) I need to flag client as profit and loss for consecutive 3 days. Is the logic as per the Blog.

 

Regards,

Srikant

Anonymous
Not applicable

Hi @Sriku,

What's your desired result? Do you want the customer names who are got the profit or loss? As checked your sample data, every customer have profit value only in one date. So which date do you want to calculate the profit value of consecutive three days base on? Please provide your desired result in form of table or screen shot and the calculation logic of your requirement. Thank you.

In addition, I created a sample pbix file for you. Please check if that is what you want. You can also refer the following blog to do it.

Lost Customers DAX Calculation for Power BI

consecutive days profit or loss for client.JPG

Best Regards

Rena

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

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

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.