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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
eduardosilvin3
Helper II
Helper II

measures into matrix

Hi team, I am traying to combine 2 matrix.

 

rows 'Concept'[type]
columns 'DC'[Location_name]
values I have 2 measures with correct results,

TotalIndCostNoFilters A = [TotalIndCostNoFilters per LB]  * [TotalRevenue% W]

TotalIndCostNoFilters B = [TotalIndCostNoFilters per LB]  * [TotalRevenue% B]

So, I need that the matrix shows

Concept[type] = "1) Whites" in my "New Matrix Column" shows "TotalIndCostNoFilters A" measure result

Concept[type] = "2) Browns" in my "New Matrix Column" shows "TotalIndCostNoFilters B" measure result

 

Thanks in advance

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @eduardosilvin3 ,

 

1. Based on your description, I created two measures.

Measure =
SUM(financials[Sales])
Measure 2 =
SUM(financials[COGS])

 

2. Create measures to show different results.

Measure 3 =
SWITCH(TRUE(),
MAX('financials'[Country]) = "Canada",'financials'[Measure],
MAX('financials'[Country]) = "France",'financials'[Measure 2])

vkaiyuemsft_0-1718242987892.png

 

So you could try changing your expression to:

TotalIndCostNoFilters Conditional =
SWITCH(
TRUE(),
SELECTEDVALUE('Concept'[type]) = "1) Whites", [TotalIndCostNoFilters A],
SELECTEDVALUE('Concept'[type]) = "2) Browns", [TotalIndCostNoFilters B],
BLANK()
)

 

If your Current Period does not refer to this, please clarify in a follow-up reply.

 

Best Regards,

Clara Gong

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

2 REPLIES 2
Anonymous
Not applicable

Hi @eduardosilvin3 ,

 

1. Based on your description, I created two measures.

Measure =
SUM(financials[Sales])
Measure 2 =
SUM(financials[COGS])

 

2. Create measures to show different results.

Measure 3 =
SWITCH(TRUE(),
MAX('financials'[Country]) = "Canada",'financials'[Measure],
MAX('financials'[Country]) = "France",'financials'[Measure 2])

vkaiyuemsft_0-1718242987892.png

 

So you could try changing your expression to:

TotalIndCostNoFilters Conditional =
SWITCH(
TRUE(),
SELECTEDVALUE('Concept'[type]) = "1) Whites", [TotalIndCostNoFilters A],
SELECTEDVALUE('Concept'[type]) = "2) Browns", [TotalIndCostNoFilters B],
BLANK()
)

 

If your Current Period does not refer to this, please clarify in a follow-up reply.

 

Best Regards,

Clara Gong

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

eduardosilvin3
Helper II
Helper II

sorry, mistake in the first sentence, "Hi team, I am traying to combine 2 measures"

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.