Forum Discussion
calculation modification
i have table uptime and mint averger
uptime :
uptime mint average code
previous month uptime avg this value keep after selection months after three it will increase +1 next months
if user select july previous three month april may june value mint value calulcate avergae kept it same next three month aguest,sep,oct.
3 Replies
- amitchandakSuper User
Anonymous , Not very clear. Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.
You can use measure like these with help from date table
last 3 month allocated value
CALCULATE([Uptime]*.5,DATESMTD(dateadd('Date'[Date],-1,MONTH)))+
CALCULATE([Uptime]*.3,DATESMTD(dateadd('Date'[Date],-2,MONTH)))+
CALCULATE([Uptime]*.2,DATESMTD(dateadd('Date'[Date],-3,MONTH)))
Rolling 3 Avg = CALCULATE(averageX('Date'[Month Year],[Uptime]),DATESINPERIOD('Date'[Date ],MAX('Date'[Date ]),-12,MONTH)) - AnonymousNot applicable
IN chart there is two type value uptime previous month and uptime next . i am using line graph for yellow value
suppose i choose week in slicer outbound25-06-2021 ,previous three be like below
standdard calculation
Yellow color value
March 63.9 * 0.2 = 12.78April 65.1 * 0.3 = 19.53
May 65.7 * 0.5 = 32.85
avarge = 65.16
Avaerge should common for first three month in blue colour july,August,September,
after that next three month averge increase by +1 and last december increase +2
Thanks in advance
- AnonymousNot applicable
amitchandak i have shared files . any update . it will really helpful for me if it work ..thank you bro in advance