Forum Discussion
Table visual with data from Data tab + measures
- 6 months ago
Hi,
PBI file attached.
Hope this helps.
Hi,
If Table 1 shows the shape of the input data table, then you will have to first "Unpivot Other Columns" in Power Query and then build a matrix visual. But in the matrix visual, if you want to add 4 additional columns (YTD and the last 3 column of your Table 2), then you may have to use calculation groups.
Can u pls help me to understand how the calculation groups can help me to achieve this?
- Ashish_Mathur7 months agoSuper User
Hi,
Could you share sample data and the logic of your forecast calculations.
- harshadrokade6 months agoPost Partisan
Data is same as I shared in first port.
Logic for Forecasted value-
Assuming I have a column with the actual values for each month:Month Value
Jan 100 Feb 120 Mar 140 Apr 160 May 180 I will calculate the average monthly growth rate as follows:
Calculate the growth rate for each month:
- Feb: (120 - 100) / 100 = 20%
- Mar: (140 - 120) / 120 = 16.67%
- Apr: (160 - 140) / 140 = 14.29%
- May: (180 - 160) / 160 = 12.5%
Calculate the average monthly growth rate:
- (20 + 16.67 + 14.29 + 12.5) / 4 = 15.89%
Calculate the forecast for the 6th month:
- Forecast = 180 * (1 + 15.89/100) = 208.60
- Ashish_Mathur6 months agoSuper User
Hi,
PBI file attached.
Hope this helps.