Forum Discussion
Guidance for PBI Matrix / Table to present defect id ( Superscript) to status
- 3 years ago
see how you solved your question
I solved it in two waysignore the Scenarios 4, it's me who made these numbers for verification
https://dropmefiles.com/YXgzCАхмед-kazakhstan
Hi Ahmed
Many thanks for your suggestion & help but when there is 2 Defect attached to the status . this function suggested by you is not working
could you suggest how this code needs to change to have "space " & "Comma" to separate Defect ID in the Def column ...
Many Thanks, Ahmed for your guidance. Now I am able to superscript Defect ID's into my matrix table .but wondering if can we use different color codes for status ( say Green for a pass, red for failed ) and only Blue color to indicate all defect ID superscripts.
- Ahmedx3 years ago
Super User
i have modified the code, you can use the following:
Sympol_2 = var _tblSympol=FILTER(
ADDCOLUMNS (
ADDCOLUMNS (
CROSSJOIN (
DISTINCT ( 'tbl'[Defect] ),
SELECTCOLUMNS ( GENERATESERIES ( 1, 30, 1 ), "_Value", [Value] )
),
"@Numercic", MID ( [Defect], [_Value], 1 )
),
"@Sympol",LOOKUPVALUE ( simpls[Symbol], simpls[Numeric], [@Numercic] )
),[Defect]<>"")
Return
[status]& SUBSTITUTE(CONCATENATEX(_tblSympol,[@Sympol],""),"’","’ ")