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
mrlex
New Member

Creating a table of averages based on two categories

Stuck on this one and I am a little unclear whether it is best to do this with DAX or in the query editor.
Creating new tables with formulas is a little new for me. 

I have a large table with values like so:


Table Name: Document Views

TopicSubtopic  Document  Views  Clicks  Likes  
PowerBI  DAXDoc 11523
PowerBIDAXDoc 22035
ExcelPivot Tables  Doc 32652
PowerBIMDoc 42211
ExcelPivot TablesDoc 51125


I want to create a new table with averages across the Topic and Subtopic. Something like this:

TopicSubtopicAvg. Views  Avg. Clicks  Avg. Likes  
PowerBI  DAX17.52.54
PowerBIM2211
ExcelPivot Tables  18.53.53.5

 

Can anyone recommend the best approach for this? 
Really appreciate anyone who can help me!!

1 REPLY 1
MohammadLoran25
Solution Sage
Solution Sage

Hi,

You just need to put your Topic and Subtopic fields in a new table visual in power bi and put a measure in the table visual as well which its fomula should be like below:

 

AverageView=

AVERAGE('TABLE'[VIEWS])
 
And similar for the other measures.
 
If this answer solves your problem, please mark it as an accepted solution so the others would find what they need easier.
Regards,
Loran

 

 

 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors