I have a relative date filter on the visual also, to only show the last 3 weeks as this is the only way I can display the most recent data. Is there any way I can build this into the calculation without having a filter on the page?
Thanks for getting back to me. Not sure if the above is what Iām looking for. I need to get the sales amount by product for the previous week. Your formula is giving the same sales for ātotal salesā ātotal sales last weekā and " last 3 week sale" .
My formula for total sales is the total over many years(in my own dataset) as I cannot figure out how to get a dynamic total YTD calculation. I am not sure if this is why my calculations are not working out for me.
Time intelligence is not my friend, especially because I have a complex date table.
Not sure I have understood your question but I provide a formula using DATESBETWEEN and you can select have far back you would like to go, 7 14 21 days.
See New Total Last Week.
The calculation works fine when I use the FinYear & Week as part of the table, but once applied to a table with the products, it adds the total this week to the total last week.
See below - Product 1 Total sales for wk 19/10/2020 = $285.10, the total the prior week 12/10/2020 = $216.10. Once you remove the āwk Beginningā you can see that instead of the total last week showing $216.10, it is $501.20 (this weeks sales, and last weeks sales added together). Not sure if I am explaining this correctly, or if I am just missing something?!
Thanks for your help here. Not sure how to explain this, sorry! I want to have a table which shows, Product, Total Sales and Total Sales Last Week, I donāt want to have the date shown, or the week number. So product 1 Total sales (this week) is $285.10 and Total Sales Last week should show $216.10, not $501.20.
Similarly, product 101, total sales(this week) is $906.39 and total sales last week is $254.89, not $1161.28.
There is something wrong in the below measure, that is adding the sales together.
Hi Noelle
If you donāt show the date in some form you lose Context donāt you. Date Context.
How does PBI know what is this week vs last week vs the weeks before that.
I have done another table where I have left the Wk Beginning in but through formatting you donāt see this field.
I also added a slicer so you can select the time period.Sample PBIX file EnterpriseDNA1 (1).pbix (421.9 KB)
Hope this helps, because thatās all Iāve got. I will watch and see with interest what others say.
My apologies for not solving your issue, if this does not work for you.
Michael
Hi @Nurry90, did the response provided by the contributors help you solve your query? If not, how far did you get, and what kind of help you need further? If yes, kindly mark the thread as solved. In case there wonāt be any activity on it in the next few days, weāll be tagging this post as Solved. Thanks!
Hi @Nurry90, a response on this post has been tagged as āSolutionā. If you have a follow question or concern related to this topic, please remove the Solution tag first by clicking the three dots beside Reply and then untick the check box. Also, weāve recently launched the Enterprise DNA Forum User Experience Survey, please feel free to answer it and give your insights on how we can further improve the Support forum. Thanks!
Thank you for trying Not the solution I was looking for as it is still adding the previous week to the current week. Not to worry, Iāll work through what you have given me and see if I can figure it out!
The easiest way to tackle this is to add a new column to your date table that evaluates to either āCurrent Weekā, āLast Weekā based on the date or the relative week (as is available in the practice dataset), or blank().
Once you have this, youāll be able to use a matrix visual. The new calculated column as the columns, and the products as rows. A bit like this, where Iāve used the relative weeks on the columns:
Hi @Nurry90, a response on this post has been tagged as āSolutionā. If you have a follow question or concern related to this topic, please remove the Solution tag first by clicking the three dots beside Reply and then untick the check box. Also, weāve recently launched the Enterprise DNA Forum User Experience Survey, please feel free to answer it and give your insights on how we can further improve the Support forum. Thanks!