Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
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