Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi All,
Thanks for your time. I have gone through some search but could not find..
Is it possible to get the average line in the bar graph say clustered bar graph ...say for example i have year in axis
2019 2020 2021 2022 and the measure is count of ticket numbers.. i want to get the average of last 3 only ( i do not want to include the 2022 in it)...could not find anything in my search,,,
any help is highly appreciated
Solved! Go to Solution.
Hi @Raj007 ,
Please create the measure and then add a constant line (You may need an updated version of Desktop to add constant lines).
Ave =
AVERAGEX (
TOPN ( 3, VALUES ( 'Table'[Year] ), CALCULATE ( MAX ( 'Table'[Year] ) ), ASC ),
[SumTickets]
)
If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Raj007 ,
Please create the measure and then add a constant line (You may need an updated version of Desktop to add constant lines).
Ave =
AVERAGEX (
TOPN ( 3, VALUES ( 'Table'[Year] ), CALCULATE ( MAX ( 'Table'[Year] ) ), ASC ),
[SumTickets]
)
If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
i have may 2020 version...is this the reason why iam not able to see the options?
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 98 | |
| 72 | |
| 50 | |
| 48 | |
| 42 |