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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
salman_ali
Helper IV
Helper IV

help with averaging

Hi I need some help

 

salman_ali_0-1600028942508.png

 

Each manifest ID appears multiple times in the data, and has multiple event dates and may have multiple different capacities.

 

I would like to write a measure which

 

find distnct values in column 1 (Manind), how many times event_date (column 2) appears attached to that distinct Manind, and lastly average of Truck_capacity for each value of distinct Manind.

 

can you help?

3 REPLIES 3
v-jingzhang
Community Support
Community Support

Hi @salman_ali , you can also get the count and average easily by changing the aggregate type of the fields as below when you use them in a visualization.

 

v-jingzhang_0-1600220590512.jpeg

Best Regards,

Community Support Team _ Jing Zhang

If this post helps, please consider Accept it as the solution to help other members find it.

amitchandak
Super User
Super User

@salman_ali ,

 

Try like

Count(Table[event_Date])

AverageX(Values(Table[ManInd]), max(Table[truck_capacity]))
AverageX(Summarize(Table, Table[ManInd],"_1", max(Table[truck_capacity])),[_1])

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
FrankAT
Community Champion
Community Champion

Hi @salman_ali 

take a look at the following solution and attached pbix file (below):

 

13-09-_2020_22-59-01.png

 With kind regards from the town where the legend of the 'Pied Piper of Hamelin' is at home
FrankAT (Proud to be a Datanaut)

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors