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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
victormarconis
Frequent Visitor

How can I compute my "header" array otherwise?

I have the measure "demandpresentation" and it returns the right value per line, but when I close the matrix items, it only takes the maximum (I understand that it is because my measure has the MAX), but I wanted that line by line was the MAX and when I closed it, it was the SUM. Even because I have another column "days_of_stock" and then it calculates the stock/demand, and as I'm using the max for the line by line to be correct, it is also incorrect.

 

demandpresentation = MAX(entradas[demandames])
1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @victormarconis ,

 

You can create a new measure that calculates the sum of the maximum values per line when the matrix is closed. First, you need to identify a column that uniquely identifies each row in your data. Let's assume you have a column called . You can create a new measure as follows:

SumOfMaxDemand = SUMX(SUMMARIZE(entradas, entradas[RowID], "MaxDemand", MAX(entradas[demandames])), [MaxDemand])

 

Best Regards,

Neeko Tang

If this post  helps, then please consider Accept it as the solution  to help the other members find it more quickly. 

 

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @victormarconis ,

 

You can create a new measure that calculates the sum of the maximum values per line when the matrix is closed. First, you need to identify a column that uniquely identifies each row in your data. Let's assume you have a column called . You can create a new measure as follows:

SumOfMaxDemand = SUMX(SUMMARIZE(entradas, entradas[RowID], "MaxDemand", MAX(entradas[demandames])), [MaxDemand])

 

Best Regards,

Neeko Tang

If this post  helps, then please consider Accept it as the solution  to help the other members find it more quickly. 

 

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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