Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
I have this matrix visual in powerbi
Now i want to add a extra row in matrix visual combining bxx,exx,fxx ( named as BEF)
How to calculate values like below visual in powerbi matrix,
thank you, any help is appreciated 🙂
Solved! Go to Solution.
The easiest way is to create a new group with the companies as follows. First the model
In the company table, create a new group as follows:
Now create the matrix with the fields from the date and company tables and the measures to get:
Another alternative is to create the company table using:
Company with groups =
VAR _BEF =
CALCULATETABLE (
VALUES ( fTable[Company] ),
FILTER (
fTable,
CONTAINSSTRING ( fTable[Company], "B" )
|| CONTAINSSTRING ( fTable[Company], "E" )
|| CONTAINSSTRING ( fTable[Company], "F" )
)
)
VAR _ROWS =
DISTINCTCOUNT ( fTable[Company] )
RETURN
ADDCOLUMNS (
DISTINCT ( fTable[Company] ),
"BEF",
IF (
fTable[Company] IN _BEF,
CONCATENATEX ( _BEF, fTable[Company], " & " ),
fTable[Company]
),
"Order",
IF (
fTable[Company] IN _BEF,
_ROWS + 1,
RANKX ( ALL ( fTable[Company] ), fTable[Company],, ASC )
)
)
and then set up the matrix as follows
If you want to create the visual exactly as you posted it can be done (let us know).
Sample PBIX file attached
Proud to be a Super User!
Paul on Linkedin.
Is the new rows supposed to be bynamic (you intend to select the companies in a slicer for example) or will it be a fixed number of companies (always the same)?
Proud to be a Super User!
Paul on Linkedin.
It will be fixed for those 3 companies
The easiest way is to create a new group with the companies as follows. First the model
In the company table, create a new group as follows:
Now create the matrix with the fields from the date and company tables and the measures to get:
Another alternative is to create the company table using:
Company with groups =
VAR _BEF =
CALCULATETABLE (
VALUES ( fTable[Company] ),
FILTER (
fTable,
CONTAINSSTRING ( fTable[Company], "B" )
|| CONTAINSSTRING ( fTable[Company], "E" )
|| CONTAINSSTRING ( fTable[Company], "F" )
)
)
VAR _ROWS =
DISTINCTCOUNT ( fTable[Company] )
RETURN
ADDCOLUMNS (
DISTINCT ( fTable[Company] ),
"BEF",
IF (
fTable[Company] IN _BEF,
CONCATENATEX ( _BEF, fTable[Company], " & " ),
fTable[Company]
),
"Order",
IF (
fTable[Company] IN _BEF,
_ROWS + 1,
RANKX ( ALL ( fTable[Company] ), fTable[Company],, ASC )
)
)
and then set up the matrix as follows
If you want to create the visual exactly as you posted it can be done (let us know).
Sample PBIX file attached
Proud to be a Super User!
Paul on Linkedin.
thank you so much 🙂
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 103 | |
| 80 | |
| 64 | |
| 50 | |
| 45 |