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

Prepping for a Fabric certification exam? Join us for a live prep session with exam experts to learn how to pass the exam. Register now.

Reply
muhammedaslam02
Frequent Visitor

line and clustered chart

 

 

 

I have a line and clustered column chart.
Can anyone help me as I want to add the below values to the line y axis
1)count of SLA Vilotaed per month
2)Count of "user1" per month

muhammedaslam02_0-1664578505164.png

 


https://www.dropbox.com/transfer/cap_pid_ft:AAAAAB7o9L_Wqu7WvNnrZSWbJumuObCTE3L8mTC16n3_7IXsl3ey6_Y

1 ACCEPTED SOLUTION
v-jingzhang
Community Support
Community Support

Hi @muhammedaslam02 

 

Here are my measures. Hope they would be helpful. 

User1 Count =
CALCULATE (
    COUNT ( Tickets[Ticket ID] ),
    FILTER (
        Tickets,
        Tickets[Created time] <= MAX ( Dim_Date[Date] )
            && (
                Tickets[Closed time] >= MIN ( Dim_Date[Date] )
                    || ISBLANK ( Tickets[Closed time] )
            )
            && Tickets[User] = "USER1"
    )
)
SLA Violated Count = 
CALCULATE (
    COUNT ( Tickets[Ticket ID] ),
    FILTER (
        Tickets,
        Tickets[Created time] <= MAX ( Dim_Date[Date] )
            && (
                Tickets[Closed time] >= MIN ( Dim_Date[Date] )
                    || ISBLANK ( Tickets[Closed time] )
            )
            && Tickets[Resolution status] = "SLA Violated"
    )
)

vjingzhang_0-1664876606956.png

 

Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.

View solution in original post

2 REPLIES 2
v-jingzhang
Community Support
Community Support

Hi @muhammedaslam02 

 

Here are my measures. Hope they would be helpful. 

User1 Count =
CALCULATE (
    COUNT ( Tickets[Ticket ID] ),
    FILTER (
        Tickets,
        Tickets[Created time] <= MAX ( Dim_Date[Date] )
            && (
                Tickets[Closed time] >= MIN ( Dim_Date[Date] )
                    || ISBLANK ( Tickets[Closed time] )
            )
            && Tickets[User] = "USER1"
    )
)
SLA Violated Count = 
CALCULATE (
    COUNT ( Tickets[Ticket ID] ),
    FILTER (
        Tickets,
        Tickets[Created time] <= MAX ( Dim_Date[Date] )
            && (
                Tickets[Closed time] >= MIN ( Dim_Date[Date] )
                    || ISBLANK ( Tickets[Closed time] )
            )
            && Tickets[Resolution status] = "SLA Violated"
    )
)

vjingzhang_0-1664876606956.png

 

Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.

Ashish_Mathur
Super User
Super User

Hi,

There should first of all be an active relationship between the Created date or the Closed date column to the Date column of the Calendar Table.  But even before that, you should create 2 additional columns - Create date and Closed date.  We will also have to create an inactive relationship.  Only after this basic set up is done should we even think of answering your questions.  


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Helpful resources

Announcements
May PBI 25 Carousel

Power BI Monthly Update - May 2025

Check out the May 2025 Power BI update to learn about new features.

May 2025 Monthly Update

Fabric Community Update - May 2025

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