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

The FabCon + SQLCon recap series starts April 14th at 8am Pacific. If you’re tracking where AI is going inside Fabric, this first session is a can't miss. 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
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.