Help with calculating median stores sales…

  • Help with calculating median stores sales…

    Posted by Unknown Member on May 22, 2018 at 12:39 am
    • Andrew Pearce

      Member

      May 22, 2018 at 12:39 AM

      Hello

      I’d like some assistance please, I have sales data at a transaction level and therefore calculating the median transaction value was straight forward.Ā 

      I’d now like to calculate the median store value sales. I think I need to summarise/group the data to the store level and then perform a median calculation. I’ve spent a lot of time researching and made exactly zero progress.

      Could I please have some assistance with methodology and a DAX calculation?

      Thank you

      Andrew

      ——————————
      Andrew Pearce
      Business Analyst
      Metcash
      Sydney NS
      0402236131
      ——————————

    • John Broomfield

      Member

      May 22, 2018 at 1:27 AM

      What about the following:
      Add a measure like this to the Sales FACT – Total Sales = SUM(quantity * Cost)Ā 
      Then add a measure like this to your Store DIM –Ā Median Sale = MedianX ( Values(Store DIM[Store Name]) , Sales FACT[Total Sales] )

      Something similar is mentioned here –Ā Median of distinct total per month

      Powerbi remove preview
      Median of distinct total per month
      Hi, I can’t believe how much difficulty this apparently easy problem is causing me. Below is a sample set of data. Imagine it to be a list of all sales to the customers of our company. We see that for instance in Month 1 we had 1 sale to customer AAA, 3 sales to BBB, 1 to CCC, and 2 sales to custome…
      View this on Powerbi >

      Hope this is what you were after.

      ——————————
      John Broomfield
      Business Intelligence Analyst
      LocalSearch
      Robina
      (07) 5526 7776
      ——————————
      ——————————————-

    Unknown Member replied 7 years, 10 months ago 1 Member · 0 Replies
  • 0 Replies

Sorry, there were no replies found.

The discussion ‘Help with calculating median stores sales…’ is closed to new replies.

Start of Discussion
0 of 0 replies June 2018
Now

Welcome to our new site!

Here you will find a wealth of information created for peopleĀ  that are on a mission to redefine business models with cloud techinologies, AI, automation, low code / no code applications, data, security & more to compete in the Acceleration Economy!