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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
ghouse_peer
Post Patron
Post Patron

Backlog Static value

Hello Guys,

 

I have used backlog formula and took it into a visual. values are showing perfectly but after June 2020 the recent backlog value is reflecting for all the months. That should not happen in visual, It should stop till june. If at all july data is added then it needs to calculate accordingly.

 

Dax: Backlog=

CALCULATE([opened Date]-[Closed date],FILTER(ALLSELECTED(Dates),Dates[Date]<=max(Dates[Date])))
 
Red line which is backlog count.
From July to december it is showing june value. I dont want that. As we dont have remaining months data. It should stop till june. Kindly help. 
Thanks in advance.
 
 
1 ACCEPTED SOLUTION

@ghouse_peer , That is Date in you table. If use max date in the table will stop at max date in the table 

In place of backlog date use date from table 

 

Cumm Sales = CALCULATE(SUM(Sales[Sales Amount]),filter(date,date[date] <=maxx(date,date[date])))
Cumm Sales = CALCULATE(SUM(Sales[Sales Amount]),filter(date,date[date] <=max(Sales[Sales Date])))

 

Like in second case I has use Sales date from sales table

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

5 REPLIES 5
amitchandak
Super User
Super User

@ghouse_peer  , Try

Dax: Backlog=
CALCULATE([opened Date]-[Closed date],FILTER(ALLSELECTED(Dates),Dates[Date]<=max(Backlog[Date])))

 

Use date from you table in the max

or

Dax: Backlog=

var _max = maxx(allselected(Dates),Dates[Date])

retunr
CALCULATE([opened Date]-[Closed date],FILTER(ALLSELECTED(Dates),Dates[Date]<=max(Backlog[Date])),

Backlog[Date] <=_max

)

 

 

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  what is this Backlog[Date] in the  measure which you have provided. I do not have any seperate date for backlog in my model.

If at all i want to use date in Max which date i have to use.

Pls elaborate and help.

@ghouse_peer , That is Date in you table. If use max date in the table will stop at max date in the table 

In place of backlog date use date from table 

 

Cumm Sales = CALCULATE(SUM(Sales[Sales Amount]),filter(date,date[date] <=maxx(date,date[date])))
Cumm Sales = CALCULATE(SUM(Sales[Sales Amount]),filter(date,date[date] <=max(Sales[Sales Date])))

 

Like in second case I has use Sales date from sales table

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 the solution. Somehow i was not having seperate date column in tickets table. Again i created a new column with difference of opened and closed date. So i got seperate date column. I used that and got the required solution.

@amitchandak  I dont have any specific date column in Tickets table. only i have ticket opened date, Ticket closed date, Ticket number. 

I have seperate date table which contains all dates from the  model created using calendarauto().

 

According to u when i changed the date to Opened date in max and viceversa, the value is getting wrong and visual is not in the format which is required.

 

i jst want that value to stop there instead of showing default  for alll months. Kindly help how to overcome this. 

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors
Top Kudoed Authors