Forecasting in sas for multiple products? - sas

How do we forecast in sas for multiple products or sku's. For example if there are 100 products and their respective sales data in a dataset. How do we forecast for all the 100 products without writing the code 100 times.
PS - i am very new to sas.

Related

Multiple FACT tables to create a matrix visual in Power BI - creating measures to display multiple values

I was working on a data set and had few queries on how to model the data.
I have two FACT tables with the following fields
Budget table
Team Category
Team name
Service line
ID
ID_name
Employee Name
Rank
Location
Employee category
Week ending date
Hours
Revenue
Cost
Revenue or hours category
Actuals table**
Team Category
Team
Service line
ID
ID_name
Employee Name
Rank
Location
Employee category
Week ending date
Hours
Revenue
Cost
Many to many relationship exists between the tables. I have created a calendar table and a Service line table to help me filter across tables which are created as DIM tables.
The initial output I am looking for will look like the attached image
Output visual
Similar tables to be created based on Team category and Team name
I tried to follow two approaches – first one by maintaining them as separate tables and creating multiple measures for the each of the required fields. However, I was not able to get to the attached table visual
Secondly, I appended the two tables by adding an additional column named Budget and Actuals to the respective tables. Then, Hours, Revenue, Cost was unpivoted and made as the attribute. Measures were created for actuals, revenue = E, forecast, budget and variance. In this scenario, I could recreate the above output. But, could not create revenue per hour and cost per hour metrices
Can someone guide on how to move about this data model.
There are couple of other DIM tables that can be created, but that doesn't save space or is useful in filtering

Power BI Categories and Subcategories

I have 3 columns in Power BI - Main categories of Costs, and Subcategories of Costs and Values. I would like the preview to be in the same row, as shown in the second table.
This is the table I have.
Category
Subcategory
Values
Acqusition Costs
Brokerage Commissions
9000
Acqusition Costs
Other Commissions
3000
Maintenance Costs
Hardware Maintenance
5000
Maintenance Costs
Software Maintenance
5000
And this is the table I need to show in Power BI
Costs
Value
Acqusition Costs
12000
*Brokerage Commissions
*9000
*Other Commissions
*3000
Maintenance Costs
10000
*Hardware Maintenance
*5000
*Software Maintenance
*5000
Thank you in advance.
Are you trying to make a table? Or is this a visualization for a PowerBI a report?
You wouldn't make an actual table object in your PowerBI Model this way. Your first table can be abstracted upon by either DAX or the available PowerBI visuals to get the result you want.
For example, using your initial dataset in the model:
This can be abstracted with PowerBI's Matrix visual to get your desired output:
Notice how you can stack categorical columns within the 'Rows' visualization section. This provides the effect of a hierarchy between your categories.
Hope this helps.

How to get summarize a column as daily, weekly and monthly in power bi if I have data at 15 minute interval?

I have data in the following format:
I want to create a pivot table with timestamp and value and then apply a slicer to the dataset that summarizes the dataset at daily, weekly and monthly intervals. The slicer should look like this:
If I select monthly, then the pivot table should look like this:
How do I solve this problem?

Data Blending equivalent in Power BI

Is there a similar concept as Tableau's Data Blending in Power BI? I have 2 tables with different granularity, lets say Table A has Target Revenue data on monthly basis for a Region and Table B has Revenue data on Daily bsis for a Region. If I join by Region, it will show Target multiple times (as many days there are in the month).
Thanks

Power BI report help finilizing

enter code hereI am trying to make equipments availability report from 3 tables linked together by specific date, say for example (03/03/2019).
That date will return the jobs that we did in some equipments. When run the report I got only the equipments that have jobs on that day say I have 10 machines and I did only 3 jobs on that day so my result report will have only 3 rows I want my reporThe image show samplet to have 10 rows with only 3 rows with information about the jobs.
On that day but I need my report to show all the equipments even those has no job on that day. In Access it is easy by editing the relationship properties and chose keep all records from first table.