The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi all,
I want to Caluclate Backlog Tickets based on condition. Backlog Tickets = Created before lastdate of month and Resolved after last date of month or Resolved is blank.
Thanks in Advance
Solved! Go to Solution.
Hi @Kethireddy334 ,
Here I create a sample to have a test.
Date table:
Date = ADDCOLUMNS( CALENDARAUTO(),"Year",YEAR([Date]),"Month",MONTH([Date]))
Measure:
Backlog Tickets =
VAR _lastdate_of_month = MAX('Date'[Date])
RETURN
CALCULATE(COUNT('Table'[Tickets]),FILTER('Table',[Created Date]<=_lastdate_of_month&&'Table'[Resolved Date] >_lastdate_of_month))
Result is as below.
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Kethireddy334 ,
Here I create a sample to have a test.
Date table:
Date = ADDCOLUMNS( CALENDARAUTO(),"Year",YEAR([Date]),"Month",MONTH([Date]))
Measure:
Backlog Tickets =
VAR _lastdate_of_month = MAX('Date'[Date])
RETURN
CALCULATE(COUNT('Table'[Tickets]),FILTER('Table',[Created Date]<=_lastdate_of_month&&'Table'[Resolved Date] >_lastdate_of_month))
Result is as below.
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.