cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
hhmmiao Visitor
Visitor

How to calculate daily average for each of the two columns and then multiply the daily averages?

I am new to power BI.

I have two columns for water quantity and concentration of pollutants, so i want to calcualte daily pollutant loading.

How should I create a measure to calculate = daily(water-quantity)*dailyaverage(pollutant)

DateWater-quantityPollutant
 m3/dmg/L
2/1/20192000321
2/1/2019NULL324
2/1/2019NULL210
2/2/20194567150
2/2/2019NULL232
2/3/2019NULL542
2/3/20194323842
1 ACCEPTED SOLUTION

Accepted Solutions
Super User
Super User

Re: How to calculate daily average for each of the two columns and then multiply the daily averages?

Put your Date in a visual and then use this measure:

 

Measure = SUM([Water-quantity]) * AVERAGE([Pollutant])

I have book! Learn Power BI from Packt


Did I answer your question? Mark my post as a solution!

Proud to be a Datanaut!

View solution in original post

1 REPLY 1
Super User
Super User

Re: How to calculate daily average for each of the two columns and then multiply the daily averages?

Put your Date in a visual and then use this measure:

 

Measure = SUM([Water-quantity]) * AVERAGE([Pollutant])

I have book! Learn Power BI from Packt


Did I answer your question? Mark my post as a solution!

Proud to be a Datanaut!

View solution in original post

Helpful resources

Announcements
New Ranks and Rank Icons in 2020

New Ranks and Rank Icons in 2020

Read the announcement for more information!

New Kudos Given Badges Coming

New Kudos Given Badges Coming

We're rolling out new Kudos Given badges. Find out how many Kudos you've given.

November 2019 Community Highlights

November 2019 Community Highlights

Get an overview of the events and great community content from November.

Power Platform World Tour

Power Platform World Tour

Find out where you can attend!

Top Kudoed Authors (Last 30 Days)