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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
prabhatnath
Advocate III
Advocate III

Help on Creating Tickets Created vs Tickets Closed by Weekday

Hi Friends,

 

Need a help on a Line Chart to show Tickets created and Closed by Weekday.

I have a DataSet Tickets with columns: ID, CreatedDate, Type, Sev, Status, Title,  ResolvedDate, MitigatedDate

And a Calendar Table with Date, other columns plus Weekday (Sun, Mon, Tue....)


Something like this done was done in Excel:

prabhatnath_0-1705157830195.png

Status will store: ACTIVE, RESOLVED, MITIGATED.
We can consider both Resolved + Mitigated as Closed.

Please suggest.

Thanks,

Prabhat

1 ACCEPTED SOLUTION
v-weiyan1-msft
Community Support
Community Support

Hi @prabhatnath ,

 

Based on your description,
you might consider using the following code to create two Measures.
My Sample:
Table-Tickets:

vweiyan1msft_0-1705492334834.png

Table-Calendar:

vweiyan1msft_1-1705492353943.png

Created Tickets = COUNT(Tickets[ID])
Closed Tickets =
COUNTX (
    FILTER (
        'Tickets',
        'Tickets'[Status] = "RESOLVED"
            || 'Tickets'[Status] = "MITIGATED"
    ),
    'Tickets'[ID]
)

Result is as below.

vweiyan1msft_2-1705492445609.png

 

Is this the result you expect?
For further details, please find attachment.

 

Best Regards,
Yulia Yan

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
v-weiyan1-msft
Community Support
Community Support

Hi @prabhatnath ,

 

Based on your description,
you might consider using the following code to create two Measures.
My Sample:
Table-Tickets:

vweiyan1msft_0-1705492334834.png

Table-Calendar:

vweiyan1msft_1-1705492353943.png

Created Tickets = COUNT(Tickets[ID])
Closed Tickets =
COUNTX (
    FILTER (
        'Tickets',
        'Tickets'[Status] = "RESOLVED"
            || 'Tickets'[Status] = "MITIGATED"
    ),
    'Tickets'[ID]
)

Result is as below.

vweiyan1msft_2-1705492445609.png

 

Is this the result you expect?
For further details, please find attachment.

 

Best Regards,
Yulia Yan

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

PijushRoy
Super User
Super User

Hi @prabhatnath 

Please create a calculated column

Calculated Status =
If('table'[Status] IN {"Resolved","Mitigated"},"Closed Ticket","Created Ticket")

 

Bring the new column in visual

If your requirement is solved, please make sure to MARK AS SOLUTION and help other users find the solution quickly. Please hit the LIKE button if this comment helps you.

Thanks
Pijush
www.MyAccountingTricks.com 
https://www.youtube.com/MyAccountingTricks

Thanks for your suggestion Pijush, but I will need 2 values (Created count for the Date) and Resolved/Closed count for the Date in Y Axis for each Day/Date.

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.