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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
EnSe
New Member

Count rows based on date condition from another table

Hello @ all,

 

I'm just about to build a report in powerBI for a Jira Project-Reporting. For this I want to display a burndown chart showing the burndown of tasks starting from the project start-date till todays day. 

 

Now I have 2 tables:

- Issue_list: Contains all relevant issues including the their resolution date (date/time format)

- Date_table: A simple date-Table containing all dates (days) from the project start till now

 

My approach was to add another column to the Date_table called "count". The function behind should be that for each date row it should count the number of rows in the Issue_list table where the following condition applies 'IssueList'[ResolutionDate] = NULL or is greater than the actual date in Date_table.

 

However, I have to admit that I got completely stuck at that point 😞 

 

Does someone of you maybe have an idea how to do this? Or maybe has completely different solution approach?

 

Thank you in advance for your support

 

Best regards

2 REPLIES 2
v-achippa
Community Support
Community Support

Hi @EnSe,

 

Thank you for reaching out to Microsoft Fabric Community.

 

As we haven’t heard back from you, we wanted to kindly follow up to check if the solution provided by the super user for the issue worked? or let us know if you need any further assistance?
If our response addressed, please mark it as Accept as solution and click Yes if you found it helpful.

 

Regards,

Anjan Kumar Chippa

johnt75
Super User
Super User

Make sure that there is no relationship between the date table and the issues table and then you can create a measure like

Burn Down =
VAR MaxDate =
    MAX ( 'Date'[Date] )
VAR Result =
    CALCULATE (
        COUNTROWS ( 'Issues' ),
        'Issues'[Resolution Date] IN { BLANK (), MaxDate }
    )
RETURN
    Result

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.