Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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
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 ,.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
114 | |
100 | |
74 | |
73 | |
49 |
User | Count |
---|---|
145 | |
109 | |
109 | |
90 | |
64 |