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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
dk_24
Helper I
Helper I

Sum of Average?

Hi All,

 

i want to show the sum of average in card visulization .how do that,please find the below screen shot of requirement.

 

Sum Avg.png

 

 

1 ACCEPTED SOLUTION

Hi @dk_24,

I reproduce your scenario, and get expected result.

Please create three measures using the formula.

Total Charts = SUM(Test[Charts Count])
Avg charts per hour = AVERAGE(Test[Charts/Hour]) sum(Avg charts per hour) = SUMX(SUMMARIZE(Test,Test[User],"Average",AVERAGE(Test[Charts/Hour])),[Average])


Please create a table visual to get the expected table as follows.

1.PNG

Then create a card visual, add the [sum(Avg charts per hour)] measure as follows.

2.PNG

Best Regards,
Angelia

 

View solution in original post

7 REPLIES 7
Omega
Impactful Individual
Impactful Individual

Check the below link: 

 

https://community.powerbi.com/t5/Desktop/Calculate-sum-of-averages-by-month-and-item/td-p/59523

 

OR

 

You can try creating a new table and applying the below fomula: 

 

Table = GROUPBY(Table2,Table2[User],"AVG of Users",AVERAGEX(CURRENTGROUP(),Table2[Charts/Hours]))

Can you please share the link again , you have given the current post link.

Omega
Impactful Individual
Impactful Individual

Done

no, i am facing issue with slicer...i have a multiple visuazations on the same page .is there any way to achive this with out createing new table.

 

thanks.

Hi @dk_24,

I reproduce your scenario, and get expected result.

Please create three measures using the formula.

Total Charts = SUM(Test[Charts Count])
Avg charts per hour = AVERAGE(Test[Charts/Hour]) sum(Avg charts per hour) = SUMX(SUMMARIZE(Test,Test[User],"Average",AVERAGE(Test[Charts/Hour])),[Average])


Please create a table visual to get the expected table as follows.

1.PNG

Then create a card visual, add the [sum(Avg charts per hour)] measure as follows.

2.PNG

Best Regards,
Angelia

 

Anonymous
Not applicable

Can you please share the PBIX file if possible .

 

I have a similar kind of requirement.

 

I would like to create a Measure based on the below SQl Query .

 

Select sum (time spent)

From (

Select SY_ID, avg( time_spent) time_spent

From   sys_time_table

Where sy_id between 10 and 17

Group by sy_ID

) A11

 

Sy_ID

time spent

10

51.64936632

11

58.64235554

12

56.39979121

13

60.92594488

14

54.53173522

15

56.47643072

16

50.18421093

17

37.66204409

  
  

Output in power bi

 

426.4718789

Thanks for your time Angelia. it's working as expected.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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.