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 August 31st. Request your voucher.
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 |
---|---|
10 | |
9 | |
6 | |
6 | |
5 |
User | Count |
---|---|
21 | |
14 | |
14 | |
9 | |
7 |