Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Hi all,
I hope you are all well,
I have been tasked to showcase the 12 month rolling averages for various departments. I have managed to get the calculations for the rolling averages. This is how they want the visual to represent:
Any ideas on how to achieve this view on the matrix visual? Any help would be appreciated 🙂
Kind Regards,
Asa
Hi @asa70,
As we haven’t heard back from you, we wanted to kindly follow up to check if the solution provided for the issue worked? or Let us know if you need any further assistance?
If our response addressed, please mark it as Accept as solution and click Yes if you found it helpful.
Regards,
Vinay Pabbu
Hi @asa70,
As we haven’t heard back from you, we wanted to kindly follow up to check if the solution provided for the issue worked? or Let us know if you need any further assistance?
If our response addressed, please mark it as Accept as solution and click Yes if you found it helpful.
Regards,
Vinay Pabbu
Hi @asa70,
As we haven’t heard back from you, we wanted to kindly follow up to check if the solution provided for the issue worked? or Let us know if you need any further assistance?
If our response addressed, please mark it as Accept as solution and click Yes if you found it helpful.
Regards,
Vinay Pabbu
Hi @v-vpabbu, apologies for the late reply. The solution is providing blanks which is not the desired outcome
Hi @v-vpabbu, thank you so much for the assistance. Unfortunately, the solution had 2 problems which I saw:
Kind Regards,
Asa
Hi @asa70,
The missing year totals happen because the measure only calculates when Month is in scope.
Adjust the measure to handle totals separately and verify the underlying data.
Regards,
Vinay
@asa70 ,
You need to have measure like the ones below. The year logic can be based on today
Net at Year Level = if( ISINSCOPE('Date'[Month No]) && Max('Date'[Year]) < 2020 , BLANK(), [Net])
Hi @amitchandak , thank you so much for your solution. I have tested it out. Unfortunately, the totals column gives the wrong values to the rolling average calculation
Let me expand on the image, hopefully it can provide more clarity:
1. Rolling Average Column name - This is a part of a measure select function.
2. The year
3. The last 3 months of the last year
Would I need to make provision for the measure select attribute name in (1) in the measure you provided?
Hi @asa70,
Try this:
Rolling 12M Avg (Final) =
VAR _IsMonth = ISINSCOPE('Date'[Month No])
VAR _LastDate = MAX('Date'[Date])
VAR _CutoffDate = EOMONTH(TODAY(), -14) -- Allows last 12 months + last 3 of previous year
RETURN
IF(
_IsMonth && _LastDate >= _CutoffDate,
CALCULATE(
AVERAGEX(
DATESINPERIOD('Date'[Date], _LastDate, -12, MONTH),
[Net]
)
),
BLANK()
)
Regards,
Vinay Pabbu
User | Count |
---|---|
84 | |
76 | |
74 | |
48 | |
39 |
User | Count |
---|---|
114 | |
56 | |
51 | |
42 | |
42 |