Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Solved! Go to Solution.
Try with following
Column =
CALCULATE (
COUNTROWS ( TableName ),
FILTER (
ALLEXCEPT ( TableName, TableName[Items] ),
PATHLENGTH ( SUBSTITUTE ( [Items], "_", "|" ) ) - 1 = 2
)
)
1) Create Index Table for Slicer from What-if-Parameter
Create Index Table
2) Create below Measure
Try with following
Column =
CALCULATE (
COUNTROWS ( TableName ),
FILTER (
ALLEXCEPT ( TableName, TableName[Items] ),
PATHLENGTH ( SUBSTITUTE ( [Items], "_", "|" ) ) - 1 = 2
)
)
@Zubair_MuhammadThanks very much, it's workin very well.
However, can you explain me the formula :
PATHLENGTH ( SUBSTITUTE ( [Items], "_", "|" ) ) - 1 = 2
Not sure to understand it very well.
Moreover, you need sometimes to use ; instead of ,.
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!