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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
viktork
Frequent Visitor

SUM column based on 2 date columns

Hello experts,

I am trying to receive "number of open bugs"  grouped by
- project

- the end of particular period week / quarter / year 

and based on CREATED and RESOLVED dates columns.


Measure Open issues is a total count of created issues until the period end minus a total count of resolved issues until the period end. We consider the issue resolved if it has a resolution date.


The complex moment is, that we need to check both columns, CREATED and RESOLVED in order to make desicion about calculation. We should count all P1, P2, P3, P4 if

 

Pseudo code:

foreach date X (end of particular period) {

if date X  > date[CREATED] AND (date[RESOLVED] IS EMPTY OR date[RESOLVED]>date X)

SUM(P1);

SUM(P2);

SUM(P3);

SUM(P4);

}

 

1 ACCEPTED SOLUTION
2 REPLIES 2
viktork
Frequent Visitor

Thank you Amit,
This is exact solution for my case. Really appreciate your help!

amitchandak
Super User
Super User

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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