Forum Discussion

SeanPolley_Apty's avatar
SeanPolley_Apty
Frequent Visitor
3 years ago
Solved

Week On Week - Sales and Opportunities from SF Report

Objective: Show the week on week change for both Sales and Number of Opportunities from a Salesforce Report. This dummy set only includes 2023 dates but the real dataset is from the 2021-2023. Multi...
  • Ashish_Mathur's avatar
    3 years ago

    Hi,

    Create a Calendar Table with a week number column.  Create a relationship (Many to One and Single) from the Date column of the Data table to the Date column of the Calendar table.  To your visual, drag Week number from the Calendar Table.  Write these measures

    Total = sum(Data[Sales USD])

    Total in previous week = calculate([Total],datesbetween('Calendar'[date],min('calendar'[date])-7,min('calendar'[date])-7)))

    Variance = [Total]-[Total in previous week]

    Hope this helps.