Ratio in Sales and hours

Please assist? What store has the highest percentage decrease in sales between Jul 2019 and Jul 2020?
https://drive.google.com/file/d/1ztaF0QPrSaqqOQW3OQv-oGCy14j3SFXV/view?usp=sharing

Hi @anthony.qpollis, I noticed you didn’t provide a PBIX file. Providing one will help users and experts find a solution to your inquiry faster and better.

A perfect initial question includes all of the following:

  • A clear explanation of the problem you are experiencing

  • A mockup of the results you want to achieve

  • Your current work-in-progress PBIX file

  • Your underlying data file (to allow us to go into Power Query if necessary to transform your data and/or data model – often DAX questions really end up being data modeling solutions)

Check out this thread on Tools and Techniques for Providing PBIX Files with Your Forum Questions

Not completing your data may sometimes cause delay in getting an answer.

Hi @Yrstruly

This Dax is for a calculate table that return the store with high decrease sales from previous month.

MoM =
TOPN (
    1,
    SELECTCOLUMNS (
        SUMMARIZECOLUMNS (
            'Raw data'[store_name],
            dim_date[Year],
            dim_date[Month],
            "Sales", [tSales],
            "PM Sales", CALCULATE ( [tSales], DATEADD ( dim_date[Date], -1, MONTH ) )
        ),
        "Store", [store_name],
        "Sales", [Sales],
        "PM Sales", [PM Sales],
        "Delta", [PM Sales] - [Sales],
        "Delta %", DIVIDE ( [Sales], [PM Sales] ) - 1
    ),
    [Delta]
)

FastFood_Sales-JB.pbix (2.3 MB)

Note: Please use @Melissa Date Table

2 Likes

Hi @Yrstruly, did the response provided by @jbressan help you solve your query? If not, how far did you get and what kind of help you need further? If yes, kindly mark as solution the answer that solved your query.

I hope that you are having a great experience using the Support Forum so far. Kindly take time to answer the Enterprise DNA Forum User Experience Survey, we hope you’ll give your insights on how we can further improve the Support forum. Thanks!

Hi @Yrstruly, we’ve noticed that no response has been received from you since August 3. We just want to check if you still need further help with this post? In case there won’t be any activity on it in the next few days, we’ll be tagging this post as Solved.

Hi @Yrstruly, due to inactivity, 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.

Kindly take time to answer the Enterprise DNA Forum User Experience Survey, we hope you’ll give your insights on how we can further improve the Support forum. Thanks!