Forum Discussion

kgsoto's avatar
kgsoto
New Member
5 months ago
Solved

How not to exclude data comparing two sets of data with dates

I have two tables: one reflecting budget values, the other reflecting actual values, each with daily values. For ease, let's say each table only has "date" and "unit sales" columns. In my PBI matrix,...
  • Kedar_Pande's avatar
    5 months ago

    kgsoto 

    Budget Units = 
    CALCULATE(
    SUM(Budget[Unit Sales]),
    REMOVEFILTERS(Actual[Date]), // ignore actuals filter
    USERELATIONSHIP(Date[Date], Budget[Date]) // force budget relation
    )
    Actual Units = 
    CALCULATE(
    SUM(Actual[Unit Sales]),
    REMOVEFILTERS(Budget[Date]), // ignore budget filter
    USERELATIONSHIP(Date[Date], Actual[Date])
    )

    )
    Matrix: Rows = Date[Month], Values = both measures.