Forum Discussion

David4's avatar
David4
Frequent Visitor
8 years ago
Solved

Identifying Period number from Week number

Hi

 

Our financial year is split into 13 periods with 4 weeks per period. What I'd like to do is have a report with two visuals and a week slicer so that when a user chooses a week, one visual shows the income for that week and the second visual shows the total income for the period that that week sits in.

 

My simplified date table looks like this:

WeekPeriod
11
21
31
41
52
62
72
82

 

And the simplified data table looks like this:

WeekIncome
1500
21000
3600
4400
5600
6700
7300
8400

 

So if the week slicer was set to week 2 then the "week" visual would show £1,000 and the "period" visual would show £2,500 (£500+£1,000+£600+£400).

I hope I've explained that clearly - any help would be really appreciated.

4 Replies

    • David4's avatar
      David4
      Frequent Visitor

      Thanks so much Ashish, that's exactly what I'm after. If it's not too much trouble, would you mind explaining how the formula for the period works? In particular the "ABCD" part.

      • Ashish_Mathur's avatar
        Ashish_Mathur
        Icon for Super User rankSuper User

        You are welcome.  The SUMMARIZE function creates a virtual table.  ABCD is the title of the column which i have added in that virtual table.