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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Syndicate_Admin
Administrator
Administrator

Incremental Average single points of sale

Hello tod@s

I'm trying to create a measure from a sales base that allows me to see the following:

with 1 SKU to how many PDVs on average I get

with 2 SKUs to how many PDVs on average I get....

and so for 3, 4, 5 SKUs

I intend to put together a table like the following, where the average value for SKU 2 is the average of unique PDVs between SKU1 and SKU2... (15+9)/2 = 12 and so...

Captura de Pantalla 2021-10-29 a la(s) 11.51.13.png

Put together a DISTINCTCOUNT(BD[CLIENT]) measure that tells me the unique customers/POS but I don't know the incremental average.

Thank you!

1 ACCEPTED SOLUTION
onurbmiguel_
Super User
Super User

Hello Syndicate_Admin

 

My Sugestion for the measure:

Promedio incremental SKU = 
// to difine de min of SKU
var _SKU_ID = min('Table'[SKU])
//calcualte the average considerating the min of SKU
var _values = 

    CALCULATE(
        AVERAGE('Table'[Cantidad de PDV]),FILTER(ALL('Table'),'Table'[SKU]<=_SKU_ID))

return 

//to control if SKU is filtered or not
if(
    ISFILTERED('Table'[SKU]),
    _values,
    BLANK()
)

 

the output:

onurbmiguel__0-1635525416116.png

 

Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Best Regards
BC

 


Best regards


Bruno Costa | Super User


 


Did I help you to answer your question? Accepted my post as a solution! Appreciate your Kudos!! 


Take a look at the blog: PBI Portugal 


 


View solution in original post

1 REPLY 1
onurbmiguel_
Super User
Super User

Hello Syndicate_Admin

 

My Sugestion for the measure:

Promedio incremental SKU = 
// to difine de min of SKU
var _SKU_ID = min('Table'[SKU])
//calcualte the average considerating the min of SKU
var _values = 

    CALCULATE(
        AVERAGE('Table'[Cantidad de PDV]),FILTER(ALL('Table'),'Table'[SKU]<=_SKU_ID))

return 

//to control if SKU is filtered or not
if(
    ISFILTERED('Table'[SKU]),
    _values,
    BLANK()
)

 

the output:

onurbmiguel__0-1635525416116.png

 

Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Best Regards
BC

 


Best regards


Bruno Costa | Super User


 


Did I help you to answer your question? Accepted my post as a solution! Appreciate your Kudos!! 


Take a look at the blog: PBI Portugal 


 


Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.