Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hello,
Need help - For a cumulative trend line chart - open vs closed tickets. doing a running count using this formula -
Where there is blank, it should be showing previous month data. For example, for the month of May there is no ticket Closed, we need to show same count as what is seen in April. Closed line is breaking and not showing any data for May.
I tried using Calendar table, but unable to get the right output. When there is no data for the month, the line breaks in between.
Any suggestions for this?
Solved! Go to Solution.
@Charuta , Have you tried like with date table
for active join created date
Running Total = CALCULATE((count(Data[ticketcount])),Filter(All(Date[Date]),Date[Date]<=Max(Date[Date])) )
Hi @Charuta ,
According to my understanding, when there is no data in this month, then use the count number of previous month,right?
Please firstly create a new calendar table and build a relationship between two tables:
Calendar = CALENDAR(MIN('Data'[CreatedDate]),MAX('Data'[CreatedDate]))
Then use the following formula to create a measure:
Measure =
var _count=CALCULATE(COUNT(Data[TicketCount]),FILTER('Data', FORMAT([CreatedDate],"YYYY-MM")=FORMAT(MAX('Calendar'[Date]),"YYYY-MM")))
return IF(_count=BLANK(),CALCULATE(COUNT(Data[TicketCount]),PREVIOUSMONTH('Calendar'[Date])),_count)
The final output is shown below:
Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thanks both , @Anonymous and @amitchandak - Calendar date option worked, the format was date/time earlier so it wasn't working. Now it is all fixed
@Charuta , Have you tried like with date table
for active join created date
Running Total = CALCULATE((count(Data[ticketcount])),Filter(All(Date[Date]),Date[Date]<=Max(Date[Date])) )
Hi Amit,
Yes, I have tried this. It does not give the increasing trend and no data for the next month. still shows blank.
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 103 | |
| 80 | |
| 62 | |
| 50 | |
| 45 |