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.
HI together,
I have a problem that has been making me despair for days.
Actual description:
Currently there are two tables. The first table contains all incidents with the attributes ID, ActualStart, ActualFinish. This table is with the Date table where all dates are located. Both tables are connected by Date and Actual Start.
Two KPI are needed:
One is to count how many tickets were opened in the month, which turns out to be pretty simple.
DAX: Created_Tickets = COUNTROWS(RELATEDTABLE(Security_Incidents_Created))
The second number is a bit harder to calculate and makes me despair.
Due to the fact that the connection between ActualStart and Date was drawn, I can't manage to count the rows where Closed Month is equal to Date.
Keyword: Countrows to an unrelated table.
The attempt to solve this with a variable failed.
Closed_Ticket = var cont = FIRSTNONBLANK('Security_Incidents_Created'[Closed Month],1) return COUNTROWS(FILTER('Date','Date'[Date]=cont))
In addition, tickets can still be open if Closed Month is empty.
Could somebody please help?
Solved! Go to Solution.
@Anonymous , Seem like very similar to my HR blog topic
@Anonymous , Seem like very similar to my HR blog topic
User | Count |
---|---|
15 | |
12 | |
8 | |
7 | |
7 |
User | Count |
---|---|
24 | |
20 | |
12 | |
10 | |
7 |