Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

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.

Reply
nandukrishnavs
Super User
Super User

how can i get sales "variance % group" as slicer

ProductDateSales($MM)
Product A1-1-2014500
Product B1-1-2014350
Product A1-1-2015900
Product B1-1-2015550
Product C1-1-2015410

 

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 

ProductDateSales ($MM)Previous Year Sales ($MM)
Product A1-1-20145000
Product B1-1-20143500
Product A1-1-2015400500
Product B1-1-2015550350
Product C1-1-20154100

 


Regards,
Nandu Krishna

1 ACCEPTED SOLUTION
v-yulgu-msft
Employee
Employee

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

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-yulgu-msft
Employee
Employee

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

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.