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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
maart666
Helper I
Helper I

Running total for two measures

Hi,

I have a table with two dates "Plan Date" and "Act Date" that I need to compare in one line chart. I have to compare them between reports from different dates ("Report date") . I also have a table with a calendar. I have to show increasing number of rows for particular dates.

The “RT Act Date”

RT Act Date =
CALCULATE(COUNTROWS(Arkusz1), FILTER( ALLSELECTED(Arkusz1),Arkusz1[Act Date]<=MAX('Calendar'[Date])))


measure works fine, but I am unable to show data for both reports as two lines on chart. The relation "Plan Date" to "Date" in the Calendar table is not active, so the measure "RT Plan Date" is not working.  This is my exemle file: 
https://www.dropbox.com/s/ap9j5qicvc0zph9/RT.pbix?dl=0


I will be grateful for any suggestions.

Thank you.

Marcin

 

1 ACCEPTED SOLUTION
v-xiaotang
Community Support
Community Support

Hi @maart666 

Thanks for reaching out to us.

you can try this measure,

RT Plan Date Test = 
CALCULATE(
    COUNTROWS(Arkusz1),
   
    FILTER(
        ALLSELECTED(Arkusz1),Arkusz1[Plan Date] <=MAX('Calendar'[Date])
    )
)

vxiaotang_0-1649665437171.png

if this doesn't help, could you provide the expected outcome (how to calculate it, the math formula)? Thanks.

 

Best Regards,

Community Support Team _Tang

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

View solution in original post

2 REPLIES 2
v-xiaotang
Community Support
Community Support

Hi @maart666 

Thanks for reaching out to us.

you can try this measure,

RT Plan Date Test = 
CALCULATE(
    COUNTROWS(Arkusz1),
   
    FILTER(
        ALLSELECTED(Arkusz1),Arkusz1[Plan Date] <=MAX('Calendar'[Date])
    )
)

vxiaotang_0-1649665437171.png

if this doesn't help, could you provide the expected outcome (how to calculate it, the math formula)? Thanks.

 

Best Regards,

Community Support Team _Tang

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

Thank you.

It is what I was looking for!

 

Marcin

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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