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

Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more

Reply
Lamati
Frequent Visitor

How to create a measure that counts the cumulative number of bids over time, based on bid status

Hello! I have a list of bids that go through various statuses over time. I would like to create a ribbon chart that shows me over time how many offers I have in each of the states, taking into account that when an offer changes state, the cumulative number of offers is modified. 

 

This is the list with my data: 

 

OfferIDStatus_Change_DateStatus
108/01/20221. OfferSent
213/01/20221. OfferSent
318/01/20221. OfferSent
423/01/20221. OfferSent
528/01/20221. OfferSent
128/01/20222. Waiting Answer
602/02/20221. OfferSent
202/02/20222. Waiting Answer
307/02/20222. Waiting Answer
412/02/20222. Waiting Answer
517/02/20223.1. Closed
622/02/20223.1. Closed
127/02/20223.2. Pending_Payment
204/03/20223.2. Pending_Payment
309/03/20223.2. Pending_Payment
414/03/20223.2. Pending_Payment
114/03/20224.1. Payment Received
219/03/20224.1. Payment Received
429/03/20224.2. Cancelled

 

With this data, I have created a measure with which I try to count cumulatively the offers according to the status, but it does not take into account the change of status of the offer:

 

State_Change_Count =
    CALCULATE(
        COUNTROWS('Original Data') ,
        FILTER(ALLSELECTED('Original Data'[Status_Change_Date]),
            'Original Data'[Status_Change_Date] <= MAX('Original Data'[Status_Change_Date])
    ))
 
If I plot this measurement on a ribbon chart, I get the following result:
Lamati_0-1704721247634.png

 

How do I have to modify my measurement in order to obtain a result like the following?

 

Lamati_1-1704722195645.png

 

I would be grateful for any help, because I am stuck and I don't know how to continue in order to get what I am looking for.

 

Thank you in advance

 

 
3 REPLIES 3
amitchandak
Super User
Super User

@Lamati , You should always use a separate date table in such cases joined with date of your table. Period from date table should be used in visual, measure and slicer

 

State_Change_Count =
CALCULATE(
COUNTROWS('Original Data') ,
FILTER(ALL('Date'[Date]),
'Date'[Date] <= MAX('Date'[Date])
))

 

Running Total/ Cumulative:
https://www.youtube.com/watch?v=h2wsO332LUo&list=PLPaNVDMhUXGaaqV92SBD5X2hk3TMNlHhb&index=42


You can use Window function too

Continue to explore Power BI Window function Rolling, Cumulative/Running Total, WTD, MTD, QTD, YTD, FYTD: https://youtu.be/nxc_IWl-tTc
https://medium.com/@amitchandak/power-bi-window-function-3d98a5b0e07f

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Thank you for your reply!!;

 

I have made the modifications you suggested, but I still don't get a cumulative count that changes depending on whether or not an offer changes status.

 

With your formula I get the cumulative count over time, but of the total number of bids, without the effect of the change of status.

 

Lamati_0-1704724127848.png

 

Lamati
Frequent Visitor

Helpful resources

Announcements
Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

April2025 Carousel

Fabric Community Update - April 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors