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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Santy241
Frequent Visitor

Average in Power Bi Matrix

Hi everyone! 👋 I’m new to Power BI and I need your help using matrix visuals

 

I’m trying to recreate the structure of the following Excel summary in Power BI, using a matrix visual. The actual values are not the problem — what I need is to replicate this structure, including hierarchical averages:

 

Santy241_1-1744122624141.png

My setup in Power BI:

  • Data table: BaseHistorica_Pedidos

  • Measure: Productivity H = [Completed H] / DISTINCTCOUNT([Technician: Name])

  • Fields available:

    • Contratista (contract)

    • Tecnologia (technology)

    • Tipo Agenda (calendar: D or N)

    • Fecha Inicio Agendado (used as column header with Day hierarchy)

Santy241_2-1744122827956.png

 

How can I reproduce this exact structure in a Power BI matrix?

 

1 ACCEPTED SOLUTION
MFelix
Super User
Super User

Hi @Santy241 ,

 

Depending on how you have the tables setup I would create a measure with the following code:

IF(ISINSCOPE(Table[Calendar], [Productivity H], AVERAGEX(VALUES(Table[Technology]), [Productivity H])

 

Be aware that without any data is difficult to give you a better formula.


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



View solution in original post

1 REPLY 1
MFelix
Super User
Super User

Hi @Santy241 ,

 

Depending on how you have the tables setup I would create a measure with the following code:

IF(ISINSCOPE(Table[Calendar], [Productivity H], AVERAGEX(VALUES(Table[Technology]), [Productivity H])

 

Be aware that without any data is difficult to give you a better formula.


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.