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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.