The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
Hello all,
I have a problem which I just can't solve.
I am querying a SQL database for a ticketing system. There are 2 columns. Once when the ticket was opened (CreatedDate) and once when the ticket was closed (ClosedDate).
Now I want to create a report where I can enter a date range or a fixed date and see how the ratio of opened to closed tickets is.
For this I have created 2 measures where I count the open tickets and once the closed tickets.
My problem now is, how do I create the date filter?
I can't use the date field of e.g. Created Date. If I select e.g. only one day, the result would be that ALL tickets are counted, where the Created Date = the filtered date is BUT only the closed tickets are counted, which were opened on the date of the filter. This is not supposed to be, because more tickets may have been closed on that day.
Do you understand my problem? Or did I express myself stupidly?
Hi @llaprosper check community example as idea to organize your data and make calculation. hope this help
Proud to be a Super User!
Thanks for the answer but unfortunately this is too complex for me to derive my solution from the example 😞
User | Count |
---|---|
15 | |
12 | |
8 | |
6 | |
6 |
User | Count |
---|---|
24 | |
20 | |
12 | |
9 | |
7 |