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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
Hernán
Frequent Visitor

Average all values in a column and show the las period with data DAX or Power Query

Hello everyone,

 

I hope you are doing great!

I need help in DAX or Power Query.

I need to calculate:

  • The average in the column C (all values in column C,  all months).
  • The average in each value in column C by month.
  • The score the last month with data.

I have a matrix with a measure that have a score , thus:

 

Image1. Matrix

matrix.PNG

Image2. The data used in the matrix

columns and measure in the matrix.PNG

 

Image3. Measure "Score S"

Measure used in the matrix.PNG

 

Image4. The relationships.

relationships.PNG

 

Image5. I expected that two tables.

I expected:

I expected.PNG

 

Attached the .pbix

 

Thank you so much for your help!

 

Regards,

Hernán Montoya

2 REPLIES 2
Anonymous
Not applicable

Hi @Hernán ,

I'm a little confused about below two needs, Could you please explain them further?

vbinbinyumsft_0-1669365738102.png

Thanks for your efforts & time in advance.

 

Best regards,
Community Support Team_ Binbin Yu

Hello @Anonymous ,

 

I'm sorry for reply so late.

 

Image1. I need to have a calculate column o measure with the Row Totals  and Column Total.

matrix.PNG

In a nutshell, I need  to create two matrix:

  • First matrix with Row Total how in the image1 (above) and
  • Second matrix with Column Totals (image1).

In the final, the twice matrix will see how the image5(image here below)

Image5. I need to use the new calculate columns or measure with the averages.

I expected.PNG

Thank you so much for your help!

 

Best Regards,

Hernán Montoya

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

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