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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
arjun0028
Regular Visitor

Quick Measure calculation Running Total

I have a line graph which calculates the running total of bc numbers on a daily basis.
A quick measure is created for calculating the running sum of BC_Number and the code is as follows. 

Running Sum of BC_Number =

CALCULATE(

    DISTINCTCOUNT('Booking Live Data'[BC_Number]),

    FILTER(

        ALLSELECTED('Booking Live Data'[BC_Date].[Day]),

        ISONORAFTER('Booking Live Data'[BC_Date].[Day], MAX('Booking Live Data'[BC_Date].[Day]), DESC)

    )

)

No output is obtained while using the formula as mentioned

7 REPLIES 7
Anonymous
Not applicable

Hi @arjun0028 

May I ask if you have resolved this issue? If so, please mark the helpful reply and accept it as the solution. This will be helpful for other community members who have similar problems to solve it faster.

Thank you.

Anonymous
Not applicable

Hi @arjun0028 
I wanted to check if you had the opportunity to review the information provided by @Deku . Please feel free to contact us if you have any further questions. If his response has addressed your query, please accept it as a solution and give a 'Kudos' so other members can easily find it.
Thank you.

bhanu_gautam
Super User
Super User

@arjun0028 Try using

DAX
Running Sum of BC_Number =
CALCULATE(
COUNT('Booking Live Data'[BC_Number]),
FILTER(
ALLSELECTED('Booking Live Data'[BC_Date].[Day]),
'Booking Live Data'[BC_Date].[Day] <= MAX('Booking Live Data'[BC_Date].[Day])
)
)




Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






Hi bhanu the formula which you shared isn't working. 

Anand24
Super User
Super User

Hi @arjun0028 ,
Replace DISTINCTCOUNT by COUNT in the DAX formula:

Anand24_0-1741256544332.png

 

Or change summarization of base value to "Count" in quick measure window:

Anand24_1-1741256610258.png

 

 

Give a Thumbs Up if this post helped you in any way and Mark This Post as Solution if it solved your query !!!

Proud To Be a Super User !!!
LinkedIn

 

The code didn't workout while using the Summarization as Count and DISTINCTCOUNT. Pls share an alternative solution for the problem.

Deku
Super User
Super User

 

CALCULATE(
    DISTINCTCOUNT('Booking Live Data'[BC_Number]),
    FILTER(
        ALLSELECTED('Booking Live Data'[BC_Date].[Day]),
        'Booking Live Data'[BC_Date] <= MAXX( ALLSELECTED('Booking Live Data'[BC_Date]), 'Booking Live Data'[BC_Date] )
    )
)

 


Did I answer your question?
Please help by clicking the thumbs up button and mark my post as a solution!

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.