Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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.
Solved! Go to Solution.
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,
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,
Thank you very much!!
try playing around with CONCATENATEX:
https://docs.microsoft.com/en-us/dax/concatenatex-function-dax
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
72 | |
72 | |
38 | |
31 | |
27 |
User | Count |
---|---|
91 | |
50 | |
44 | |
40 | |
35 |