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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
rbalza
Helper III
Helper III

Count of Subcategories and Calculate its Average

Hi Power Bi SuperHumans,


How to count how many subcategories are there and calculate the average of the amount? Sample file is attached. Thanks for the help!

 https://www.dropbox.com/s/xszrjtxt9oo8k76/sampledata.pbix?dl=0 

rbalza_0-1619666994393.png

 

 



2 ACCEPTED SOLUTIONS
amitchandak
Super User
Super User

@rbalza , Try a new measure like

countx(values(Table[Sub-Category]), [Total Invoice])

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

View solution in original post

Jihwan_Kim
Super User
Super User

Hi, @rbalza 

Please correct me if I wrongly understood your question.

If you are searching to get the Average Invoice amount per group, please try the below.

 

Each group -> shows the same amount as total invoice

Each invoice -> shows the average amount -> for instance, total amount of invoice01 divided by 5 groups.

 

Picture1.png

 

Hi, My name is Jihwan Kim.

 

If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.

 

Linkedin: linkedin.com/in/jihwankim1975/

Twitter: twitter.com/Jihwan_JHKIM


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

View solution in original post

4 REPLIES 4
Jihwan_Kim
Super User
Super User

Hi, @rbalza 

Please correct me if I wrongly understood your question.

If you are searching to get the Average Invoice amount per group, please try the below.

 

Each group -> shows the same amount as total invoice

Each invoice -> shows the average amount -> for instance, total amount of invoice01 divided by 5 groups.

 

Picture1.png

 

Hi, My name is Jihwan Kim.

 

If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.

 

Linkedin: linkedin.com/in/jihwankim1975/

Twitter: twitter.com/Jihwan_JHKIM


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

@Jihwan_Kim Kamsahamnida!

amitchandak
Super User
Super User

@rbalza , Try a new measure like

countx(values(Table[Sub-Category]), [Total Invoice])

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 Thank you!

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.