The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
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
Solved! Go to Solution.
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])
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.
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])
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.
sorry, mistake in the first sentence, "Hi team, I am traying to combine 2 measures"
User | Count |
---|---|
15 | |
12 | |
8 | |
7 | |
7 |
User | Count |
---|---|
24 | |
20 | |
12 | |
10 | |
7 |