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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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