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.
Product | Date | Sales($MM) |
Product A | 1-1-2014 | 500 |
Product B | 1-1-2014 | 350 |
Product A | 1-1-2015 | 900 |
Product B | 1-1-2015 | 550 |
Product C | 1-1-2015 | 410 |
Triying to get sales variance % group into slicer. For example slicer value will be "0% to 30 %", "31% to 60%" and "61% to 100 %".
Is there any way to get previous year sales into calculated column?
For example
Product | Date | Sales ($MM) | Previous Year Sales ($MM) |
Product A | 1-1-2014 | 500 | 0 |
Product B | 1-1-2014 | 350 | 0 |
Product A | 1-1-2015 | 400 | 500 |
Product B | 1-1-2015 | 550 | 350 |
Product C | 1-1-2015 | 410 | 0 |
Solved! Go to Solution.
Hi @nandukrishnavs,
Triying to get sales variance % group into slicer. For example slicer value will be "0% to 30 %", "31% to 60%" and "61% to 100 %".
You should add a calculated column which displays values "0% to 30 %", "31% to 60%" and "61% to 100 %" in source table. Then, drag this calculated column into slicer.
Is there any way to get previous year sales into calculated column?
For example
Product Date Sales ($MM) Previous Year Sales ($MM) Product A 1-1-2014 500 0 Product B 1-1-2014 350 0 Product A 1-1-2015 400 500 Product B 1-1-2015 550 350 Product C 1-1-2015 410 0
Previous Year = LOOKUPVALUE ( 'Sales Table'[Sales($MM)], 'Sales Table'[Product], 'Sales Table'[Product], 'Sales Table'[Date].[Year], 'Sales Table'[Date].[Year] - 1 ) + 0
Best regards,
Yuliana Gu
Hi @nandukrishnavs,
Triying to get sales variance % group into slicer. For example slicer value will be "0% to 30 %", "31% to 60%" and "61% to 100 %".
You should add a calculated column which displays values "0% to 30 %", "31% to 60%" and "61% to 100 %" in source table. Then, drag this calculated column into slicer.
Is there any way to get previous year sales into calculated column?
For example
Product Date Sales ($MM) Previous Year Sales ($MM) Product A 1-1-2014 500 0 Product B 1-1-2014 350 0 Product A 1-1-2015 400 500 Product B 1-1-2015 550 350 Product C 1-1-2015 410 0
Previous Year = LOOKUPVALUE ( 'Sales Table'[Sales($MM)], 'Sales Table'[Product], 'Sales Table'[Product], 'Sales Table'[Date].[Year], 'Sales Table'[Date].[Year] - 1 ) + 0
Best regards,
Yuliana Gu
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 |
---|---|
113 | |
97 | |
80 | |
69 | |
59 |
User | Count |
---|---|
150 | |
119 | |
104 | |
87 | |
67 |