Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
2 years ago
Solved

Power BI Measure - Creating a DAX measure which uses multiple relationship between 2 tables

Hello All, We have a DimDate table which is our Date Dimension table. We have a Incident_Detail data table which contains following date column(s): 1) Created_Date 2) Cancelled_Date 3) Resolved_D...
  • Anonymous's avatar
    Anonymous
    2 years ago

    Hi,

    Thanks for the solution aduguid  provided, and i want to offer some more infotmation for user to refer to.

    hello Anonymous , you can create a measure.

    Total Open Incident =
    VAR a =
        MAX ( DimDate[Date] )
    RETURN
        CALCULATE (
            COUNTROWS ( Incident_Detail ),
            Incident_Detail[Created_Date] <= a,
            OR (
                Incident_Detail[state] IN { "On Hold", "In Progress" },
                Incident_Detail[Resolved_Date] >= a
            ),
            CROSSFILTER ( DimDate[Date], Incident_Detail[Created_Date], NONE )
        )
    
    

    Best Regards!

    Yolo Zhu

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