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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
marcos_osorio
Helper II
Helper II

Line/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                    10       5%            BrandA(45%),BrandB(20%),BrandC(35%)

B                     20      10%           BrandA(1%),BrandC(40%),BrandD(59%)

 

Is there a way to make the Colum "FOCUS" as I put it like in a measure?

 

Thank you very much.

 

 

1 ACCEPTED SOLUTION
v-cherch-msft
Employee
Employee

Hi @marcos_osorio 

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]),",")

1.png

Regards,

Community Support Team _ Cherie Chen
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

3 REPLIES 3
v-cherch-msft
Employee
Employee

Hi @marcos_osorio 

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]),",")

1.png

Regards,

Community Support Team _ Cherie Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thank you very much!!

 

Anonymous
Not applicable

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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