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
GeDei
Frequent Visitor

RunningTotal grouped by DateTable

Hallo,

 

I'm trying to visualize a RunningTotal(RT) in Power BI.
It is created by using the quick measure running total and distinct vlaue of contact id and createdon 

GeDei_1-1606724331132.png

GeDei_2-1606724356377.png

So far so good. It works like intended and I can visualize it. Now I would like to group it for Month. 

I tryed to create a second column from createdon and Format it "MMMM". But then the calculation does not show the RT but the distinct value per Month.

 

I created a Date-Table and linked it to the contact table.

Now I'm stuck to use the date table in the vusiual. 

I can't figure out to group it proper to show the RT by Month and sort Month in the right order

GeDei_0-1606724293966.png

Maybe someone has an idea.

 

KR

GeDei

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@GeDei , can share what is wrong. As MMMM does not take the case of year that part I expect that to be wrong here

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

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@GeDei , can share what is wrong. As MMMM does not take the case of year that part I expect that to be wrong here

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

@amitchandak 

Thanks for your response. I acutally did not test your answer but went another way. Which I think still shows that you are correct. 

I created with the Option Data Groups a Column were Power BI created for me "Month Year"

Using this column works 

GeDei_0-1606732279023.png


Still have a Problem. When I try to select just the actual year for the filter on visual it shows the actual year and only the values for this year. But as it is a running total I would like to see the actual year with the summirzed values from the previous year. 

 

EDIT:

By changeing ALLSECLECTED to ALL no Filter will be accepted by the Measure.

_RT ContactID =
CALCULATE(
    DISTINCTCOUNT('Contact'[contactid]),
    FILTER(
        ALL('Contact'[createdon (bins)]),
        ISONORAFTER('Contact'[createdon (bins)], MAX('Contact'[createdon (bins)]), DESC)
    )
)

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.