Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
My data set looks like the following. Each year is divided into multiple pricing windows, and the start date of each pricing window falls on a different date each year. How do I create a measure so I can have volume for current year pricing window and that for last year same pricing window side by side?
I tried the below, but it is returning the sum of all volumes in that pricing window, instead of by SKU.
SKU | Year | Pricing Window | Volume | Price | Date |
SKU 1 | 2020 | 1 | 200 | 45 | 1/2/2020 |
SKU 1 | 2020 | 2 | 210 | 46 | 2/1/2020 |
SKU 1 | 2020 | 3 | 189 | 45 | 3/4/2020 |
SKU 1 | 2020 | 4 | 120 | 45 | 4/1/2020 |
SKU 2 | 2020 | 1 | 300 | 45 | 1/2/2020 |
SKU 2 | 2020 | 2 | 250 | 46 | 2/1/2020 |
SKU 2 | 2020 | 3 | 204 | 43 | 3/4/2020 |
SKU 2 | 2020 | 4 | 350 | 45 | 4/1/2020 |
SKU 1 | 2019 | 1 | 120 | 44 | 1/1/2019 |
SKU 1 | 2019 | 2 | 126 | 44 | 2/1/2019 |
SKU 1 | 2019 | 3 | 200 | 43 | 3/1/2019 |
SKU 1 | 2019 | 4 | 72 | 43 | 4/1/2019 |
SKU 2 | 2019 | 1 | 360 | 44 | 1/1/2019 |
SKU 2 | 2019 | 2 | 300 | 42 | 2/1/2019 |
SKU 2 | 2019 | 3 | 200 | 43 | 3/1/2019 |
SKU 2 | 2019 | 4 | 420 | 44 | 4/1/2019 |
Solved! Go to Solution.
Hi @Anonymous ,
Try this measure:
If you consider it as a solution, please mark as a solution and kudos.
Ricardo
Hi @Anonymous ,
Try this measure:
If you consider it as a solution, please mark as a solution and kudos.
Ricardo
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
11 | |
10 | |
10 | |
9 | |
8 |
User | Count |
---|---|
16 | |
13 | |
12 | |
11 | |
8 |