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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
murillocosta
Helper I
Helper I

Average of a Period

Hi

 

I have a mesuare which simple calculation

 

- the total number of sessions from a table per Month which is coming from my calendar table.

- Total Average Sessions.

 

murillocosta_1-1687407401089.png

murillocosta_2-1687407549540.png

 

 

murillocosta_0-1687407387984.png

 

I need to create a measure to calculate the average of the total of the months I select, but the way I am doing is calculating a average of each month and the summarizing it.

 

On the example above would be :

 

Total Average Session = (62,430 + 69,951) / 2 = 66,190

 

Thanks

 

1 ACCEPTED SOLUTION
barritown
Super User
Super User

Hi @murillocosta,

The solution below should work for you:

barritown_0-1687435577387.png

Here's the measure in plain text for convenience:

Average of Averages = 
VAR _tbl = SUMMARIZE ( data, [Month], "AvgValue", AVERAGE ( [Value] ) )
RETURN AVERAGEX ( _tbl, [AvgValue] )

Best Regards,

Alexander

My YouTube vlog in English

My YouTube vlog in Russian

 

View solution in original post

1 REPLY 1
barritown
Super User
Super User

Hi @murillocosta,

The solution below should work for you:

barritown_0-1687435577387.png

Here's the measure in plain text for convenience:

Average of Averages = 
VAR _tbl = SUMMARIZE ( data, [Month], "AvgValue", AVERAGE ( [Value] ) )
RETURN AVERAGEX ( _tbl, [AvgValue] )

Best Regards,

Alexander

My YouTube vlog in English

My YouTube vlog in Russian

 

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.