Forum Discussion

sarath_chandra's avatar
sarath_chandra
Icon for Helper III rankHelper III
3 years ago

NEED HELP IN POWER BI

Hi power bi developers, please help me out
I have a columns like this in power bi - attachment given. 


1.I have to keep a filter with higher members- only (XX123 ,XX124)- IF I SELECT THE ANY ONE IN FILTER IT SHOULD SHOW FROM HIGHER TO LOWER path with aggregation chart

I have to show the chart like this - chart snap attached below. OR ANY RECOMMENDED VISUALS IN POWER BI.


PLEASE HELP ME ! i'M NEW TO POWER BI🙏

 

 

17 Replies

    • Martin_D's avatar
      Martin_D
      Icon for Solution Sage rankSolution Sage

      Hi sarath_chandra ,

      You can add the visual you need from App Source. In Power BI Desktop click on "Get more visuals" and search for one of:

      • Hierarchy Chart by MAQ Software

      • swOrgChart

      • Hierarchy Chart by Akvelon

      • TreeViz

      • Ultimate Decomposition Tree

      Add custom visual

      While with Hierarchy Chart by MAQ Software, swOrgChart, and Hierarchy Chart by Akvelon you can use your PK and CK columns as they are, with TreeViz and Ultimate Decomposition Tree you need to create columns per category (e.g. manager, team lead, implementer, ...) first in your table.

      For each visual you can download a sample file so you can choose your preferred option.

      BR

      Martin

       

  • Thanks for input Martin_D 
    but im expecting like this as mentioned below 
    im having parent and child columns are duplicates and im having the level in another column 

    im need this kind of desired output 

    please help me in this ...

    • Martin_D's avatar
      Martin_D
      Icon for Solution Sage rankSolution Sage

      Referring to your table in message 1, in order to build the slicer you need:

      1. A disconnected table (i.e. a table that has no relationship in the data model) with a distinct list of your parent nodes. This DAX code creates this table:
        DAX code for a new table:
        Slicer Values = SUMMARIZECOLUMNS ( 'Table'[PK] )
      2. A measure to be used to select the complete branch below the top node that you want to select in the slicer:
        DAX code for a new measure:
        Show Node =
        VAR _TopNode = SELECTEDVALUE ('Slicer Values'[PK] )
        VAR _CurrentNodePath = SELECTEDVALUE ( 'Table'[Path] )
        RETURN
        IF (
            OR (
                NOT ( ISFILTERED ( 'Slicer Values' ) ),
                PATHCONTAINS( _CurrentNodePath, _TopNode )
            ),
            "show"
        )
      3.  Apply the new measure as a filter to your preferred visual for showing the hierarchy like this:
        Apply visual level filter using measure


      With Hierarchy Chart by MAQ Software as an example, the solution bahaves like this:

      No parent node selected in the slicer:
      No filter

      A parent node selcted:
      A filter set

      A different parent node selected:

      A different filter set

      • sarath_chandra's avatar
        sarath_chandra
        Icon for Helper III rankHelper III

        Thanks for your great work! Martin_D .
        above code - if i filter it will show upto the hier length of (1,2,3) not filtering the 4 and 5 hier depths

        can you please help me in second case with multiple parent and multiple child column values?

         

        but actually i need that in matrix table instead of hier chart

        please help me out ! .Thanks for your great work ! great appreciation