Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
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
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
76 | |
73 | |
55 | |
36 | |
34 |
User | Count |
---|---|
99 | |
56 | |
53 | |
44 | |
40 |