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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
ancorte
Frequent Visitor

group the rows in a table and calculate MINX and MAXX

Hello, ia have a table like this :

ancorte_0-1645736449380.png

 

I want group the rows by data and after calculate same values, like average, min e max (for every month) of  "utilizzato"/"operativo",

I dont' know how to make it.... i think that i have to use summarize, or calculatetable.

Is there anyoine that can help me ?

Thanks in advance

1 ACCEPTED SOLUTION
v-jayw-msft
Community Support
Community Support

Hi @ancorte ,

 

Create a new table like below.

Table 2 = SUMMARIZE('Table','Table'[Column1],'Table'[Column2],"_sum",SUM('Table'[Column3]),"_avg",AVERAGE('Table'[Column3]))

1.jpg2.jpg

 

Best Regards,

Jay

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.

View solution in original post

3 REPLIES 3
v-jayw-msft
Community Support
Community Support

Hi @ancorte ,

 

Create a new table like below.

Table 2 = SUMMARIZE('Table','Table'[Column1],'Table'[Column2],"_sum",SUM('Table'[Column3]),"_avg",AVERAGE('Table'[Column3]))

1.jpg2.jpg

 

Best Regards,

Jay

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.
TheoC
Super User
Super User

Hi @ancorte 

 

You can create a calculated column for the MIN and MAX and AVG etc by group without needing new tables, etc.  You can use something like the following:

 

Column = CALCULATE ( MIN ( Table[Value] ) , FILTER ( Table , Table[Intermediario] = EARLIER ( Table[Intermediario] ) ) )

 

Just change the "Table" to your table name. 

 

Hope this helps!

Theo

If I have posted a response that resolves your question, please accept it as a solution to formally close the post.

Also, if you are as passionate about Power BI, DAX and data as I am, please feel free to reach out if you have any questions, queries, or if you simply want to connect and talk to another data geek!

Want to connect?www.linkedin.com/in/theoconias

ancorte
Frequent Visitor

Hi,

yes but i want before summarize the rows for data. In this way i could have a single row for data, and calculate the average, max and min.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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