Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
I'm currently stuck on this problem.
what I have | |||
week_end | product | sales | sales_yag |
2018-05-27 | product a | 21 | 19 |
2018-06-24 | product a | 22 | 11 |
2018-07-22 | product a | 31 | 23 |
2018-08-19 | product a | 33 | 25 |
2018-09-16 | product a | 53 | 50 |
2018-10-14 | product a | 21 | 12 |
2018-11-11 | product a | 32 | 26 |
2018-12-09 | product a | 30 | 19 |
2018-05-27 | product b | 25 | 24 |
2018-06-24 | product b | 27 | 12 |
2018-07-22 | product b | 33 | 28 |
2018-08-19 | product b | 38 | 26 |
2018-09-16 | product b | 58 | 55 |
2018-10-14 | product b | 26 | 16 |
2018-11-11 | product b | 33 | 28 |
2018-12-09 | product b | 32 | 22 |
and here is what i want:
what I want | |||
week_end | product | sales | sales_yag |
2018-08-19 | product a | 107 | 78 |
2018-12-09 | product a | 136 | 107 |
2018-08-19 | product b | 123 | 90 |
2018-12-09 | product b | 149 | 121 |
Solved! Go to Solution.
Hi, @Anonymous
You could create a new “Period “ column and assign “week_end” column to “Period” column. Then simply drag the sum sales and sales_yag into the visual will do your favorite.
Column:
PeriodEnd = SWITCH(TRUE(),
Table[week_end]<=DATE(2018,8,19), DATE(2018,8,19),
Table[week_end]>=DATE(2018,8,19), DATE(2018,12,09))
Measure:
sumsales = SUM(Sheet1[sales])
sumsales_yag = SUM(Sheet1[sales_yag])
Paul
Best
Hi, @Anonymous
You could create a new “Period “ column and assign “week_end” column to “Period” column. Then simply drag the sum sales and sales_yag into the visual will do your favorite.
Column:
PeriodEnd = SWITCH(TRUE(),
Table[week_end]<=DATE(2018,8,19), DATE(2018,8,19),
Table[week_end]>=DATE(2018,8,19), DATE(2018,12,09))
Measure:
sumsales = SUM(Sheet1[sales])
sumsales_yag = SUM(Sheet1[sales_yag])
Paul
Best
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
114 | |
100 | |
78 | |
75 | |
52 |
User | Count |
---|---|
144 | |
109 | |
108 | |
88 | |
61 |