Forum Discussion

Hammerjunge's avatar
Hammerjunge
New Member
2 years ago
Solved

Line Chart: AND Logic

Dear community,   I am building a dashboard for my team to summarize our work intake and output. We manage our tasks in a backlog in a SharePoint list. Each entry (work item) consists of multiple f...
  • lbendlin's avatar
    2 years ago

    This is a standard USERELATIONSHIP pattern.

     

    Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).

    Do not include sensitive information or anything not related to the issue or question.

    If you are unsure how to upload data please refer to https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216

    Please show the expected outcome based on the sample data you provided.

    Want faster answers? https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523

  • Anonymous's avatar
    Anonymous
    2 years ago

    Hi,Hammerjunge I am glad to help you.
    Hello,lbendlin. thanks for your concern about this issue.

    Your answer is excellent! And I would like to share some additional solutions below.

    If you have found suitable solutions, please share them as it will help more users with similar problems.
    Or you can mark the valid suggestions provided by other users as solutions
    If your requirements have not yet been realized, I have performed the relevant tests based on the data you have since provided, which I hope will be helpful to you.

    According to your description, you want to see how many work items are opened and closed per month.
    Here is my test

    M_EntryNum = 
    CALCULATE (
        COUNTROWS ( 'Table' ),
        FILTER (
            ALL ( 'Table' ),
            'Table'[Entry Date] >= MIN ( 'Calendar_'[Date] )
                && 'Table'[Entry Date] <= MAX ( 'Calendar_'[Date] )
        )
    )
    M_CloseNum = 
    CALCULATE (
        COUNTROWS ( 'Table' ),
        FILTER (
            ALL ( 'Table' ),
            'Table'[Close Date] >= MIN ( 'Calendar_'[Date] )
                && 'Table'[Close Date] <= MAX ( 'Calendar_'[Date] )
        )
    )

    Here is the test data:

    Calendar_ = CALENDARAUTO()



    I hope my suggestions give you good ideas, if you have any more questions, please clarify in a follow-up reply.

    Best Regards,

    Carson Jian,

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