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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
Chapin4u
Microsoft Employee
Microsoft Employee

In average how many rows repeat

Hi, I need help with the following:

 

Have numeric column named Bid#. Each Bid# can be repeated n times.

 

  • Need as a measure to know on average there are in Bid# column
  • Need the measure to know the max of rows a Bid# has

Many tks for the help.

2 ACCEPTED SOLUTIONS

Thk Greg for the tip. i did the following and it worked.

averagex bid =
AVERAGEX (
ADDCOLUMNS ( SUMMARIZE ( Datos, Datos[Bid #] ), "Promedio", [Count Bid#] ),
[Promedio]
)

View solution in original post

Hi @Chapin4u,

 

You may not need the ADDCOLUMNS() function.  Try this

 

=AVERAGEX(VALUES(Datos[Bid #]),COUNT(Bid #))

 

or 

 

=AVERAGEX(SUMMARIZE(VALUES(Datos[Bid #]),[Bid #],"Promedio",COUNT(Bid #)),[Promedio])

 

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

3 REPLIES 3
Greg_Deckler
Community Champion
Community Champion

Check out SUMMARIZE coupled with AVERAGEX or other "X" functions. Alternatively, check out GROUPBY with the "X" functions. Sample data and such would be helpful. Please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Thk Greg for the tip. i did the following and it worked.

averagex bid =
AVERAGEX (
ADDCOLUMNS ( SUMMARIZE ( Datos, Datos[Bid #] ), "Promedio", [Count Bid#] ),
[Promedio]
)

Hi @Chapin4u,

 

You may not need the ADDCOLUMNS() function.  Try this

 

=AVERAGEX(VALUES(Datos[Bid #]),COUNT(Bid #))

 

or 

 

=AVERAGEX(SUMMARIZE(VALUES(Datos[Bid #]),[Bid #],"Promedio",COUNT(Bid #)),[Promedio])

 

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! It's time to submit your entry.

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.