The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
Hello,
I posted this earlier but I never got a response. I'm wondering if any DAX wizards can help with the below:
I work for a retailer and am building a dashboard to help model inventory coverage based on our inventory and sales. I am using power query/ power pivot but I'm not too familiar with DAX functions so I was hoping I could get some help here.
The basic calculation I would like to do is for inventory coverage that I can bring into a pivot table. We calculate inventory coverage as: inventory/(sales for last 4 weeks/4).
Ideally, the equation of inventory coverage just because a formula that I can look at in the pivot table across stores or across product category etc. I'm just having a hard time getting the calculation in DAX. It would be a pretty simple one in calculated formulas in a normal pivot table so if someone can guide me in the right direction, I would really appreciate it.
here is a link for a sample data set of what I am using showing the sales and inventory of the stores and warehouse:
Here's an example of the pivot table currently:
@redalert787 Sorry, I'm not sure what you're trying to do? The pivot table you posted - that is just a simple matrix visual in Power BI, but I don't think that's the final result you're looking for?
How do you know which Warehouse relates to which Sales/Stores?
Also, in your sample file the Total Inventory column is empty?
Please provide desired output, and sample values for all columns of data and we can help better.
Copying DAX from this post? Click here for a hack to quickly replace it with your own table names
Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C
I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com