Forum Discussion
marcos_osorio
Helper II
7 years agoLine/measure with multiple values
Hi, I have a table with several product sizes, the products have too 4 or more different brands. So I want to show it in a matrix in this way: PRODUCT QTTY %SHARE FOCUS A ...
- 7 years ago
You may create the columns as below and then get the Focus measure.For example:
%Brand = CALCULATE ( COUNT ( TB[Brand] ), ALLEXCEPT ( TB, TB[Product], TB[Brand] ) ) / CALCULATE ( COUNT ( TB[Product] ), ALLEXCEPT ( TB, TB[Product] ) )Column = TB[Brand]&"("&FORMAT(TB[%Brand],"0%")&")"FOCUS = CONCATENATEX(DISTINCT(TB),MAX(TB[Column]),",")
Regards,
v-cherch-msft
Microsoft Employee
7 years agoYou may create the columns as below and then get the Focus measure.For example:
%Brand =
CALCULATE ( COUNT ( TB[Brand] ), ALLEXCEPT ( TB, TB[Product], TB[Brand] ) )
/ CALCULATE ( COUNT ( TB[Product] ), ALLEXCEPT ( TB, TB[Product] ) )
Column = TB[Brand]&"("&FORMAT(TB[%Brand],"0%")&")"
FOCUS = CONCATENATEX(DISTINCT(TB),MAX(TB[Column]),",")
Regards,
marcos_osorio
Helper II
7 years agoThank you very much!!