Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Hi everyone,
I have a database for a service desk ticketing system stored in a table ESD_ReqIncProb which contains the following relevent information:
I have defined a related table which is just a list of all the dates for which a ticket was opened. This was done with the formula:
Date = CALENDAR ( MIN ( ESD_ReqIncProb[tStartDateTime] ) , TODAY() )
So it prints a column of dates from the minimum value of the day of the earliest ticket opening up until today.
I want to define a new column in the Date table which counts the number of tickets opened for that day. I have tried using the following code:
CallsOpened = CALCULATE ( COUNTA( ESD_ReqIncProb[EFOLDERID] ), FILTER ( ESD_ReqIncProb, ESD_ReqIncProb[tStartDateTime].[Date] = RELATED ( 'Date'[Date] ) ) )
How this should work in theory:
Instead this simply returns the total number of tickets for every single row. It just prints
22000
22000
22000
...
etc.
Could anybody help me?
Cheers!
As long as your tables are related:
MyConunt = COUNTROWS(RELATEDTABLE('Tickets'))
User | Count |
---|---|
84 | |
76 | |
75 | |
43 | |
36 |
User | Count |
---|---|
109 | |
56 | |
52 | |
48 | |
43 |