March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe 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
Hello,
I have 2 tables (see example)
First table contains tickets and a creation date.
Second table contains tickets and closed date.
I want to calculate the total created tickets minus the total closed tickets per date. This results need to be visulized in a graph.
How can I do this?
Thx
Created | Created | Total | |||||
2020-01 | Tic-1 | 2020-01 | Tic-7 | 2020-01 | 1 | ||
2020-01 | Tic-2 | 2020-02 | Tic-8 | 2020-02 | -1 | ||
2020-02 | Tic-3 | 2020-02 | Tic-9 | 2020-03 | 1 | ||
2020-03 | Tic-4 | 2020-03 | Tic-10 | 2020-04 | -2 | ||
2020-03 | Tic-5 | 2020-04 | Tic-11 | ||||
2020-03 | Tic-6 | 2020-04 | Tic-12 |
Solved! Go to Solution.
Hi, @Foolke
take a look at this sample report I created based on your sample data, is it something like this you are after?
Cheers,
Sturla
If this post helps, then please consider Accepting it as the solution. Kudos are nice too.
Hi @Foolke
That would be helpful if you can provide the dummy pbix and the expected results in it.
you might refer to the similar posts here:
https://community.powerbi.com/t5/Desktop/Count-of-Open-cases-over-time/m-p/761764
You can create a common time dimension and join it both dates. this not from your data. But check how to join two table with same date dim: https://www.dropbox.com/s/y47ah38sr157l7t/Order_delivery_date_diff.pbix?dl=0
To get the best of the time intelligence function. Make sure you have a date calendar and it has been marked as the date in model view. Also, join it with the date column of your fact/s.
Refer
https://radacad.com/creating-calendar-table-in-power-bi-using-dax-functions
https://www.archerpoint.com/blog/Posts/creating-date-table-power-bi
https://www.sqlbi.com/articles/creating-a-simple-date-table-in-dax/
In case they are inside same table, refer:https://community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-tr...
Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution.
In case it does not help, please provide additional information and mark me with @
Thanks. My Recent Blogs -Decoding Direct Query - Time Intelligence, Winner Coloring on MAP, HR Analytics, Power BI Working with Non-Standard TimeAnd Comparing Data Across Date Ranges
Connect on Linkedin
@amitchandak Thx for the reply. Unfortunately, the solution doesn't work. What am I doing wrong?
I created a date table, made relations. But when adding the visual it doesn't show the months on the X axis. (see scr1).
@v-diye-msft : goal uis to make the visual as in screenshot, but with the monyths displayed. The line in this 'line clusterd column graph" should give the difference between created and closed tickets.
Dates have timestamp. And there where null rows. I created date columns and join
check now https://www.dropbox.com/s/xtc660479i76mae/Monthly%20INC%20report.pbix?dl=0
Hi, @Foolke
take a look at this sample report I created based on your sample data, is it something like this you are after?
Cheers,
Sturla
If this post helps, then please consider Accepting it as the solution. Kudos are nice too.
Thx @sturlaws , for some reason didn't see your answer.
Your sample report is excactly what I need.
Unfortunatly ... it doesn't work for me.
If you look at you creation date and closed date, there is a time part, e.g. 01.10.2019 22:31:29. The values in the date table are only dates, or they are like this 01.10.2019 00:00:00, so you won't get a match between the two tables.
You can split these creation/closed date into two columns using power query, one with date, the other with time.
Or you can create a calculated column where you remove the timepart of the creation date:
new column = left(creation date;9)
Just remember to change the relationships to use the new column
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
125 | |
85 | |
69 | |
54 | |
45 |
User | Count |
---|---|
204 | |
105 | |
98 | |
65 | |
54 |