Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hi,
Is there a way to add automatically on average line per month on a graph?
I have in this example a cost per site per month (5 sites ) and i would like to add a line with the average monthly cost
Thanks in advance for your help
Solved! Go to Solution.
Hi @miguesnet ,
I have created a sample for your reference, please check the following steps as below.
1. Create a calculated table as below and make it related to our fact table.
Table 2 = UNION(VALUES('Table (2)'[category]),{"avg"})
2. Then we can achieve that by a measure.
Measure =
IF (
MAX ( 'Table 2'[category] ) = "avg",
CALCULATE (
AVERAGE ( 'Table (2)'[value] ),
ALLEXCEPT ( 'Table (2)', 'Table (2)'[date] )
),
SUM ( 'Table (2)'[value] )
)
For more details, please check the pbix as attached.
You can have like using Analytics . But in this case you need a measure like
Calculate([Measure],All(Site[Site]))
Also refer :https://docs.microsoft.com/en-us/power-bi/desktop-analytics-pane
if you need more help make me @
Appreciate your Kudos.
Hi,
Thanks for your answer.
I created a new measure as you describe but i can not combine both measures on the same graph. It must be possible
Hi @miguesnet ,
I have created a sample for your reference, please check the following steps as below.
1. Create a calculated table as below and make it related to our fact table.
Table 2 = UNION(VALUES('Table (2)'[category]),{"avg"})
2. Then we can achieve that by a measure.
Measure =
IF (
MAX ( 'Table 2'[category] ) = "avg",
CALCULATE (
AVERAGE ( 'Table (2)'[value] ),
ALLEXCEPT ( 'Table (2)', 'Table (2)'[date] )
),
SUM ( 'Table (2)'[value] )
)
For more details, please check the pbix as attached.
March Release has a multi-axis line chart. And I remember that bar -line was only splitting bar. Check and try
https://powerbi.microsoft.com/en-us/blog/power-bi-desktop-march-2020-feature-summary/
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
64 | |
63 | |
52 | |
36 | |
36 |
User | Count |
---|---|
80 | |
71 | |
58 | |
45 | |
44 |