Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
Hi All,
I'm creating a KPI visual that returns the number of behaviour events for a school, with the trend as the Academicc week (starts in September). I've set the target as the average number of events per week;
AverageCount =
var WeekSum=
summarize(
Behaviour,
TermTimes[AcaWeek],
"Count", DISTINCTCOUNT(Behaviour[Index])
)
return
AVERAGEX(
WeekSum,
[Count]
)
The result is that the target is the same as the value. My assumption is that this is because the KPI visual filters the value to the most recent or highest trend value. It seems like that filter is also applied to the target, so the average over all academic weeks becomes the average over the filtered academic week, so the latest week value.
I therefore changed the WeekSum variable to;
var WeekSum=
summarize(
ALLSELECTED(Behaviour),
TermTimes[AcaWeek],
"Count", DISTINCTCOUNT(Behaviour[Index])
)
The target that is displayed is now accurate, but the value is '(Blank)'. I've changed the target to a really simple 'measure=100' target and this also makes the value blank.
What is happening here please, and how can I compare this weeks performance to the average of all weeks?
User | Count |
---|---|
98 | |
75 | |
69 | |
50 | |
27 |