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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
dansuk6
Frequent Visitor

help me....

dansuk6_0-1649645180345.png

You want to calculate the arithmetic mean of the data by the amount going in and the amount overall, as shown in the figure above. I don't know what to do Help me

9 REPLIES 9
tamerj1
Super User
Super User

HI @dansuk6 
Would you please explain further this type of calculation. What are the excel formulas invloved?

dansuk6_0-1649658560201.png 

dansuk6_1-1649658686012.png

 

=IFERROR(IFS(AND($AA6="",$AB6=""),AR3,AR3>0,(AR3*$AZ3+BC2*$BB2)/$BB3,AR3<=0,BC2),"")

 

 

Using these formulas, calculate the arithmetic mean when in and get the previous arithmetic mean data when out.

 

@dansuk6 
Dax does not support recursive calculations.

@tamerj1 

I know that. I want to make this into a power bi

@dansuk6 
You could try using Power Query (M-Language). @amitchandak might advise on that.

amitchandak
Super User
Super User

@dansuk6 ,

you need to try measure like

calculate(average(Table[Value]))

 

 

overall

calculate(average(Table[Value]), allselected() )

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

I'm sorry, but could you explain it more easily?

@dansuk6 .
Can you share sample data and sample output in table format? I will try share a pbix

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

@amitchandak 어떻게 공유할 수 있나요?

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.