Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hi Team,
I have created Dax to perform month forecast value to know how much profit will make from current profit at the end of month.
It is more helpful if I get perfect dax for year forecast too .
Regards,
Arvind
Solved! Go to Solution.
You can use your DimDate table to calculate the number of days in the month. So something like this:
DaysinMonth = CALCULATE( MAX(DIM_Date[DayOfMonth] )) //Assumes you have a DayofMonth column in your DimDate table.
Then
Month Forecast = [Avg Profit] * [DaysinMonth]
You should add the Year as well into your table visual if you will need to capture Leap Years.
Hope this gets you headed in the right direction.
Regards,
You can use your DimDate table to calculate the number of days in the month. So something like this:
DaysinMonth = CALCULATE( MAX(DIM_Date[DayOfMonth] )) //Assumes you have a DayofMonth column in your DimDate table.
Then
Month Forecast = [Avg Profit] * [DaysinMonth]
You should add the Year as well into your table visual if you will need to capture Leap Years.
Hope this gets you headed in the right direction.
Regards,
User | Count |
---|---|
117 | |
75 | |
62 | |
50 | |
44 |
User | Count |
---|---|
174 | |
125 | |
60 | |
60 | |
57 |