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
Aman-K
Helper III
Helper III

Report to show last 7 days and last 30 days issues created and resolved

Hi there,

I am new to Power BI so hopefully anyone can help with my query as below:

I have done Power BI and Jira integartion using Rest API and have all the data in one query . The data has been formatted and column renamed as required . I have DateCreated column which stores date when the issue was created and ResolutionDate column which shows the date when the issue was resolved . 

I want to create a bar chart that will show issues created and resolved in last 7 days and last 30 days . 

Can you let me know the steps? Do I need to create another query for this and report based on that query? I haven't worked on M language or DAX functions etc.. so any help will be much appreciated . 

Many Thanks,

Aman

1 ACCEPTED SOLUTION

Thanks a lot @Ashish_Mathur , This has now been resolved 👍

View solution in original post

7 REPLIES 7
Aman-K
Helper III
Helper III

Thanks Amit for this useful information. I have managed to create a Date table as you described in the video so I have now Date,Month Year,Month Year Order,Year  . I have added a new measure named "TotalIssues" which shows the total number of issues in each Month Year column(using formula - TotalIssues = COUNT(AllJiraData[IssueID])

. I need to add another measure "ResolvedIssues" will calculate total resolved issues in each Month Year. I tried using the below measure but it shows same value (Total for all issues) in each Month Year which is not correct 

Resolved Issues = CALCULATE(COUNTROWS('AllJiraData'), FILTER(ALL('AllJiraData'),NOT(ISBLANK('AllJiraData'[ResolutionDate]))))
 
Can you please help me in this?
Many Thanks,
Aman
amitchandak
Super User
Super User

@Aman-K , for open and closed you can follow the common date table, and use userelationship to work with inactive join

 

Power BI: HR Analytics - Employees as on Date : https://youtu.be/e6Y-l_JtCq4
https://community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-tr...

 

If you need a trend you can follow

Need of an Independent Table in Power BI - Exclude: https://youtu.be/lOEW-YUrAbE

 

Make sure you use measures already created with userelationship

 

else use Rolling Days Formula: https://youtu.be/cJVj5nhkKBw

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

Hi ,

 

 

I have created a Date table so I now have Date,Month Year,Month Year Order,Year  . I have added a new measure named "TotalIssues" which shows the total number of issues in each Month Year column(using formula - TotalIssues = COUNT(AllJiraData[IssueID])

. I need to add another measure "ResolvedIssues" which will calculate total resolved issues in each Month Year. I tried using the below measure but it shows same value (Total for all issues) in each Month Year which is not correct 

Resolved Issues = CALCULATE(COUNTROWS('AllJiraData'), FILTER(ALL('AllJiraData'),NOT(ISBLANK('AllJiraData'[ResolutionDate]))))
 

Can anyone please help me how can I find total resolved issues for each day and month ?

Many Thanks,

Aman

 

Many Thanks,

Aman

Hi,

Create an inactive relationship between the resolution date and Calendar Table.  Write this measure

Issues resolved = calculate([Total issues],userelationship('AllJiraData'[ResolutionDate],Calendar[date]))

To your visual, ensure that Year and Month name are dragged from the Calendar Table.

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Hi @Ashish_Mathur , Thanks so much. It worked fine . Is there anyway I can add a filter so it doesn't count the records where ResolutionDate is null. At the moment it's showing 368 null records as below. 

AmanK_0-1679822776237.png

 

Hi,

Either filter the visual with the criteria of Resolution Date <> blank or use this modified measure

=calculate([Total issues],'AllJiraData'[ResolutionDate]<>blank(),userelationship('AllJiraData'[ResolutionDate],Calendar[date]))

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Thanks a lot @Ashish_Mathur , This has now been resolved 👍

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!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

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.