The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
Hello Team,
Can you please help me in getting below counts. Data should change based on slicers(File Attached).
1. Open and closed count
2. Percentage ticket closed.
Regards,
Chandrashekar B
Solved! Go to Solution.
@Chandrashekar , Try following measures
Open count = countx(FILTER('Table', 'Table'[Status] ="Open"), [Ticket])
Closed count = countx(FILTER('Table', 'Table'[Status] ="Closed"), [Ticket])
Close % = divide([Closed count], COUNTX('Table', [Ticket]))
@Chandrashekar you need a schema like this
and three measures as follows
_Closed = CALCULATE(COUNT('Table'[Ticket]),FILTER(VALUES('Table'[Status]),'Table'[Status]="Closed"))
_Open = CALCULATE(COUNT('Table'[Ticket]),FILTER(VALUES('Table'[Status]),'Table'[Status]="Open"))
_closedPCT = DIVIDE([_Closed],COUNTROWS('Table'))
Hello,
Thanks it is working fine. May I know purpose of using underscore with variable.
Regards,
Chandrashekar B
@Chandrashekar , Try following measures
Open count = countx(FILTER('Table', 'Table'[Status] ="Open"), [Ticket])
Closed count = countx(FILTER('Table', 'Table'[Status] ="Closed"), [Ticket])
Close % = divide([Closed count], COUNTX('Table', [Ticket]))
Hello,
Thanks it is working fine.
Regards,
Chandrashekar B
Hello,
I saw your post but have different requirement where I do not have closed date field.
Regards,
Chandrashekar B
User | Count |
---|---|
16 | |
8 | |
7 | |
6 | |
6 |
User | Count |
---|---|
26 | |
13 | |
12 | |
9 | |
8 |