Forum Discussion

David4's avatar
David4
Frequent Visitor
8 years ago
Solved

Period total from a week slicer

Hi

 

Our financial year is split up into 13 periods with 4 weeks in each period. What I'd like to do is show two visuals - one showing a week's income (based on a selection from a slicer) and another showing the relevant period's total income. It's getting the period number that is causing me trouble. A simplified version of my calendar table is below:

WeekPeriod
11
21
31
41
52
62
72
82
93
103
113
123
134
144
154
164

 

And my simplified data table looks like this:

WeekIncome
1£1,000
2£400
3£700
4£400
5£100
6£500
7£200
8£300
9£500
10£400
11£1,000
12£200
13£800
14£100
15£200
16

£100

 

So if a user selected week 2 on a slicer, I'd want the period visual to show £2,500 (£1,000+£400+£700+£400). Any help would be appreciated!

  • Hi,

     

    I have shared my solution to the same question you have posted here.  Please do not post the same question again.

     

    Let me know how my solution works.

3 Replies

  • Hi David4,

     

    Just make a relation between the calendar table week and the Data table by week and use the calendar week to make the slicer and use it on your visuals when need to have week on them also and should work as expected.

     

    If this is also through several years you need to have a table with WeekYear to have the link between tables.

     

    Regards,

    MFelix

  • Hi,

     

    I have shared my solution to the same question you have posted here.  Please do not post the same question again.

     

    Let me know how my solution works.

    • David4's avatar
      David4
      Frequent Visitor

      Thanks Ashish. Sorry for the double post - I thought my first one hadn't posted.