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.
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
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/
Proud to be a Super User!
Hi vanessafvg ,
I have created separate date table & linked to this fact table. And in filter i m taking date field from date table.
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.
@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.
Proud to be a Super User!
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.
hi @prashanthku
can i make a suggestion to do some reading
https://sqldusty.com/2015/09/01/10-dax-calculations-for-your-tabular-or-power-pivot-model-part-1/
http://www.daxpatterns.com/time-patterns/
http://databear.com/2016/05/26/power-bi-tips-calculate-one-of-the-most-used-dax-functions/
Proud to be a Super User!
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
109 | |
98 | |
77 | |
66 | |
54 |
User | Count |
---|---|
144 | |
104 | |
100 | |
86 | |
64 |