98.7% Of all customers recommend us, we're so confident about our results we publish all reviews and stats
View Live Stats View ReviewsForum home » Delegate support and help forum » Microsoft Power BI training and help » Forecasting
Forecasting
Resolved · Low Priority · Version Standard
Magdalena has attended:
Power BI DAX course
Forecasting
How I can create forecasting just for the month when my Calendar Table have added +366 (days) and it automatically generates forecasting for a year.
How could I create forecasting for a month/year without added +366 (days) in my Calendar table?
RE: Forecasting
Hi Magdalena,
If you change the Date table DAX to below code you will only forecast next month, with the forecast code you did on Martin's DAX course.
Dates =
var MaxDate=max(tblsales[Date])
return
ADDCOLUMNS(CALENDAR(min(tblsales[Date]),EOMONTH(MaxDate,1) ),
"Year",year([Date]),
"Quarter", format([Date],"Q"),
"Month",month([Date]),
"Week",WEEKNUM([Date],2),
"Weekend",or(WEEKDAY([Date],2)=6,WEEKDAY([Date],2)=7),
"Fiscal Year","FisCal"& YEAR([Date])+if(month([Date])>8,1,0)
)
Kind regards
Jens Bonde
Microsoft Office Specialist Trainer
Tel: 0207 987 3777
STL - https://www.stl-training.co.uk
98%+ recommend us
London's leader with UK wide delivery in Microsoft Office training and management training to global brands, FTSE 100, SME's and the public sector
Welcome. Please choose your application (eg. Excel) and then post your question. Our Microsoft Qualified trainers will then respond within 24 hours (working days). Frequently Asked Questions
Any suggestions, questions or comments? Please post in the Improve the forum thread. |
Power BI tip:Data Model ShortcutsCtrl + Shift + L: Create a relationship between tables. |