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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
Anil2264
Helper I
Helper I

leaf Level View

Hi Team,

 

Please help me out to find a logic by using I can get the "output data table" on the basis of the "current view table". I wanted to have only Leaf level to be populated in the report for each FG it should not populate the rest levels, only leaf level to be populated.

@amitchandak  @dax 

Current View
FGL1L2L3L4
A    
A123   
A123876  
B    
B222567  
B222567678 
B222567678987

 

 

Output
FGL1L2L3L4
A123876  
B222567678987
1 ACCEPTED SOLUTION

Hi, @Anil2264 

 

According to your description, I have a simple method. You need to ceate a index column in power query, then create a measure and put it in visual filter pane to filter row.

Like this:

vjaneygmsft_1-1646376765993.png

 

Measure =
VAR flag =
    MAXX (
        FILTER ( ALL ( 'Table' ), [FG] = SELECTEDVALUE ( 'Table'[FG] ) ),
        [Index]
    )
RETURN
    IF ( SELECTEDVALUE ( 'Table'[Index] ) = flag, 1, 0 )

 

vjaneygmsft_0-1646376624451.png

Did I answer your question? Please mark my reply as solution. Thank you very much.
If not, please feel free to ask me.

 

Best Regards,

Community Support Team _Janey

 

View solution in original post

3 REPLIES 3
Daryl-Lynch-Bzy
Community Champion
Community Champion

HI @Anil2264  - are you looking to implement the PATH dax functions?  Please consider the following from SQLBI:

PATH – DAX Guide

There is a short video explaining how to use PATH functions.

However, if your table is really this simple, using GROUP BY max value would work.

Many thanks
Daryl

Hi @Daryl-Lynch-Bzy 

 

The current table view is showing after using parent-child heirarchy . I need only leaf level to be populat in report as per output view given.

Hi, @Anil2264 

 

According to your description, I have a simple method. You need to ceate a index column in power query, then create a measure and put it in visual filter pane to filter row.

Like this:

vjaneygmsft_1-1646376765993.png

 

Measure =
VAR flag =
    MAXX (
        FILTER ( ALL ( 'Table' ), [FG] = SELECTEDVALUE ( 'Table'[FG] ) ),
        [Index]
    )
RETURN
    IF ( SELECTEDVALUE ( 'Table'[Index] ) = flag, 1, 0 )

 

vjaneygmsft_0-1646376624451.png

Did I answer your question? Please mark my reply as solution. Thank you very much.
If not, please feel free to ask me.

 

Best Regards,

Community Support Team _Janey

 

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.