Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
sid-poly
Helper I
Helper I

Parent and Child Hierarchy in a table

I have a table as mentioned below

 

Project NumberProject Number CopyName
P011High Level Project
P011.1Low Level Project
P011.2Medium Level Project
P022Second Project

 

I need to have a table visual which when filtered with Project Number should only show me Project Names that have project number copy with a decimal (Sub Task). Is there a DAX that can help to formulate this condition?

1 ACCEPTED SOLUTION

@sid-poly 

ProjectNumber =
MAXX (
    FILTER (
        VALUES ( 'Table'[Project Number Copy] ),
        CONTAINSSTRING ( 'Table'[Project Number Copy], "." )
    ),
    'Table'[Project Number Copy]
)

View solution in original post

3 REPLIES 3
tamerj1
Super User
Super User

Hi @sid-poly 
Place the following filter measure in the filter pane of the table visual, select "is not blank" and apply the filter.

FilterMeasure =
COUNTROWS (
    FILTER (
        VALUES ( 'Table'[Project Number Copy] ),
        CONTAINSSTRING ( 'Table'[Project Number Copy], "." )
    )
)

 

In that case I can iuse the Project Number Copy as text and Exclude the ones that do not contain "."

 

What I wanted to know is that any DAX Measure that returns a column which can be used in a table?

@sid-poly 

ProjectNumber =
MAXX (
    FILTER (
        VALUES ( 'Table'[Project Number Copy] ),
        CONTAINSSTRING ( 'Table'[Project Number Copy], "." )
    ),
    'Table'[Project Number Copy]
)

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.