cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
prashanthku
Frequent Visitor

How To get same store growth for current period Vs last year same period

Hi All,

 

I have one table where all sales data exists. The table contains date, store id, sale amount etc. Now i want to know what is the same store growth with respect to current time period Vs Last year same period. Also i want to know the closed store growth(Which does not exists in current period sale) and New Store growth( New store exists in current period but does not exists in last year same period). Kindly let me know any DAX formulas can be used to solve this. 

 

 

Thanks & Regards,

 

Prashanth Kamath

5 REPLIES 5
Super User I
Super User I

Re: How To get same store growth for current period Vs last year same period

@prashanthku

 

please post screen shots of your data,  but just as a starting point you will need to create a date table in your data to start with IMO for these date functions

https://www.mattmasson.com/2014/02/creating-a-date-dimension-with-a-power-query-script/

 

start by creating a date table and linking it to your sales date is via a relationship

https://powerbi.microsoft.com/en-us/documentation/powerbi-desktop-relationship-view/

 

 

 

 


Did I answer your question? Mark my post as a solution.
Proud a to be a Datanaut!
prashanthku
Frequent Visitor

Re: How To get same store growth for current period Vs last year same period

 Hi vanessafvg ,

 

I have created separate  date table & linked to this fact table. And in filter i m taking date field from date table.table.pngTable

 

 

 

I have attched the screenshot of my table data.

 

Here : If i select date range from 1st May -17 till 2nd May-17,

 

The same stores  are: C,D & E (As these stores exists in both the years)

The closed stores are  F,G, H & I (As these stores does not exists in 2017 years)

The new store are  L, M & N(As these stores does not exists in 2016 years)

 

I want these break ups in Power BI.

Super User I
Super User I

Re: How To get same store growth for current period Vs last year same period

@prashanthku  i have to be honest i am not getting a clear idea of what you need exactly.

 

to start with you need to create a sales measure

create new measure

 

Total Sales = sum(table[sale])

link the date column to the date table (make sure the data type is date not date time)

 

from there you can plot on a graph each store name to see  the total sales over time by place storename, date and total sales.

 

in terms of growth can you give me your defintion of what growth is?  growth in sales, growth in times, growth of last year vs this year etc.

 

 

 

 

 


Did I answer your question? Mark my post as a solution.
Proud a to be a Datanaut!
prashanthku
Frequent Visitor

Re: How To get same store growth for current period Vs last year same period

@vanessafvg

 

Actuallly i want may-16  & may-17  Sales   with the condition that whichever  stores exists in both the month.  This is called Same store sales.

 

similarly i required sales where stores doesnt exists in May-17 exists in May-16. This is called Closed cafes with respect to current month i.e., May-17.

 

similarly i required sales where stores  exists in May-17 but doenst exists in May-16. This is called New cafes with respect to current month i.e., May-17.

 

I think this will clear your doubt.

 

The data format given in my old post. For that data i required the DAX formula which suits above critatria.

Super User I
Super User I

Re: How To get same store growth for current period Vs last year same period

Helpful resources

Announcements
New Ranks Launched March 24th!

New Ranks Launched March 24th!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power BI Community!

‘Better Together’ Contest Finalists Announced!

‘Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

Arun 'Triple A' Event Video, Q&A, and Slides

Arun 'Triple A' Event Video, Q&A, and Slides

Missed the Arun 'Triple A' event or want to revisit it? We've got you covered! Check out the video, Q&A, and slides now.

Join THE global Microsoft Power Platform event series.

Join THE global Power Platform event series.

Attend for two days of expert-led learning and innovation on topics like AI and Analytics, powered by Dynamic Communities.

Community Summit North America

Community Summit North America

Innovate, Collaborate, Grow. The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors