Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
Anonymous
Not applicable

average horizontal line when analytics not available

Hi

on "Line and clustered columns chart" analytics pen is not available.

Lats say Table1 has ID, Date, PersonName, Month (calculated from Date) and Date_PersonName (combind col for join)

Table2 has Date, PersonName, Hours and Date_PersonName (combind col for join)

I have a 'Line and clustered columns chart' with

shared axis: PersonName

column series: month
column values: capacity = DIVIDE(DISTINCTCOUNT('Table1'[ID]), SUMX('Table2','Table2'[Hours]))

Line values:  AvgCapacity = AVERAGEX('Table1', DIVIDE( DISTINCTCOUNT('Table1'[ID]), SUM('Table2'[Hours])))

so far so good, for each person i get columns for each month and one AvgCapacity  line that is the average for each person.

now i want to add one horizontal line that is the average of all people and all months that are on the chart (considering other slicers on the page)

In analytics pen you can do that but for this chart analytics is not available

i tried some combinations but each time i either get the same as AvgCapacity  or just a 0 line...

how could that be achieved?

Thanks

 

2 REPLIES 2
v-chuncz-msft
Community Support
Community Support

@Anonymous ,

 

You may try adding ALLSELECTED.

https://community.powerbi.com/t5/Desktop/RANK-MIN-OF-SUM-grouped-by-two-fields/m-p/581289#M275025

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

thank you @v-chuncz-msft !

can you please elaborate?

My average line across the chart is  AVERAGEX('Table1', DIVIDE( DISTINCTCOUNT('Table1'[ID]), SUM('Table2'[Hours])))

If i add AVERAGEX(ALLSELECTED('Table1'), DIVIDE( DISTINCTCOUNT('Table1'[ID]), SUM('Table2'[Hours])))

I get the same line. is that what you meant?

What I want is to add one horizontal straight line that is the average capacity of all data in the chart (not by column)

I think it is the same as adding "Average Line" on the Analytics pane but Analytics pane is not available for 'Line and clustered columns chart'

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.