Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
POWERBI-FB
Frequent Visitor

Get Percentage of data if dates match

Hi All,
I would to created a visual which gives the percentage of tickets closed at first reply.  
The open and closed data is required to be the same as each other to be considered as closed at first reply. 

Example of data is below:
Name       Opened        Closed
James       18/12/19      18/12/19
Lisa           15/12/19      18/12/19
Dave         12/12/19      12/12/19
Joe            06/12/19      12/12/19


1 ACCEPTED SOLUTION
rajulshah
Super User
Super User

Hello @POWERBI-FB,

You can create a calculated column as below:

Closed at first reply = IF(Table[Opened]=Table[Closed],1,0)
% Closed at first reply =
VAR ClosedFirstReply = CALCULATE(COUNTROWS(Table),Table[Closed at first reply]=1)
VAR Total = COUNTROWS(ALL(Table))
RETURN DIVIDE(ClosedFirstReply,Total)


Hope this helps.

View solution in original post

2 REPLIES 2
rajulshah
Super User
Super User

Hello @POWERBI-FB,

You can create a calculated column as below:

Closed at first reply = IF(Table[Opened]=Table[Closed],1,0)
% Closed at first reply =
VAR ClosedFirstReply = CALCULATE(COUNTROWS(Table),Table[Closed at first reply]=1)
VAR Total = COUNTROWS(ALL(Table))
RETURN DIVIDE(ClosedFirstReply,Total)


Hope this helps.

Anonymous
Not applicable

@POWERBI-FB please try below measure

Measure = 
VAR _total = CALCULATE(COUNT('Table'[Name]),ALL('Table'))
VAR _same = CALCULATE(COUNT('Table'[Name]),FILTER('Table','Table'[opened]='Table'[closed]))
RETURN DIVIDE(_same,_total,0)

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.