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.
Hello,
I have a table of opened and closed tickets. All I need to do is to create another table of dates and count how many tickets were opened (I mean, not closed) on that specific day.
eg:
If a have my tickets in a fact table like this:
i have to obtain a summarized table considering the status, open and last update columns in order to have how many tickets are open on that day. Using the same table above as an example:
it has show the historical data of how many tickets were "Under work" on that day.
I´m very pleased you help me and thanks a lot.
Solved! Go to Solution.
Hi @awganzarolli ,
I created a sample pbix file(see attachment) for you, please check whether that is what you want.
1. Create a date dimension table: Tickets by Date
2. Create a measure as below to get the backlog
Backlog =
VAR _curdate =
SELECTEDVALUE ( 'Tickets by Date'[Date] )
RETURN
CALCULATE (
DISTINCTCOUNT ( 'Tickets'[Id] ),
FILTER (
'Tickets',
'Tickets'[Open] <= _curdate
&& IF ( 'Tickets'[Status] = "Closed", 'Tickets'[Last Update] >= _curdate, 1 = 1 )
)
)
Best Regards
For that I was thinking to use filter formula like this:
Hi @awganzarolli ,
I created a sample pbix file(see attachment) for you, please check whether that is what you want.
1. Create a date dimension table: Tickets by Date
2. Create a measure as below to get the backlog
Backlog =
VAR _curdate =
SELECTEDVALUE ( 'Tickets by Date'[Date] )
RETURN
CALCULATE (
DISTINCTCOUNT ( 'Tickets'[Id] ),
FILTER (
'Tickets',
'Tickets'[Open] <= _curdate
&& IF ( 'Tickets'[Status] = "Closed", 'Tickets'[Last Update] >= _curdate, 1 = 1 )
)
)
Best Regards
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
109 | |
98 | |
77 | |
66 | |
54 |
User | Count |
---|---|
144 | |
104 | |
100 | |
86 | |
64 |