Forum Discussion

Amirolia's avatar
Amirolia
New Member
5 months ago
Solved

Dynamic WoW Variance against a Persistent Historical Snapshot in Power BI

Hi experts, I have a challenge regarding Incremental Refresh and Data Persistence. The Setup: I connect to a live ERP database. Since the database doesn't keep historical stock/accruals, I implemen...
  • Natarajan_M's avatar
    5 months ago

    Hi Amirolia ,

    Incremental refresh partitions are immutable once written. Week 12 data won't be touched when Week 13 refreshes : as long as RangeStart/RangeEnd correctly filter your SnapshotDate column.

    Check whether the below approach works for you :
    Instead of lookup and previous week I think you can use the calculate approach 

    _LatestSnap = MAXX(ALL(Fact[SnapshotDate]), Fact[SnapshotDate])
    _PrevSnap = MAXX(FILTER(ALL(Fact[SnapshotDate]), Fact[SnapshotDate] < [_LatestSnap]), Fact[SnapshotDate])

    WoW Delta V1 =
    CALCULATE(SUM(Fact[V1]), ALL(Fact[SnapshotDate]), Fact[SnapshotDate] = [_LatestSnap])
    - CALCULATE(SUM(Fact[V1]), ALL(Fact[SnapshotDate]), Fact[SnapshotDate] = [_PrevSnap])


    Use Analyze in Excel : it creates an ODC-connected PivotTable that stays live against your published semantic model. Users just hit Refresh in Excel.
    Avoid Export > CSV that's static.

    Thanks ,
    If you found this helpful, please consider giving it a kudo and marking it as the accepted solution — it goes a long way in helping others facing the same issue.

    For more Power BI tips and discussions, let’s connect on LinkedIn:
    https://www.linkedin.com/in/natarajan-manivasagan

    Cheers!