Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

Comparing two excel sheets without merging

Hello,   I'm dealing with two warehouses that use different systems for item tracking. I receive weekly reports from each warehouse, and I just need to set up a dashboard that shows the differences...
  • PaulDBrown's avatar
    PaulDBrown
    5 years ago

    You have to filter out the rows containing "in transit":

    try:

    Table differences =
    VAR receiving1 =
        SUMMARIZE (
            Receiving,
            Receiving[ItemID],
            Receiving[Description],
            Receiving[Item Type],
            "QT", SUM ( Receiving[Quantity])
        )
    VAR sending1 =
        SUMMARIZE (
            FILTER(
            Sending, Sending[Status] <> "In transit"),
            Sending[ItemID],
            Sending[Description],
            Sending[Item Type],
            "QT", SUM ( Sending[Quantity (all)] )
        )
    VAR OnlyRec =
        ADDCOLUMNS ( EXCEPT ( receiving1, sending1 ), "From table", "Receiving" )
    VAR OnlySend =
        ADDCOLUMNS ( EXCEPT ( sending1, receiving1 ), "From table", "Sending" )
    RETURN
        UNION ( OnlyRec, OnlySend )