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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
Anonymous
Not applicable

How to create Groups by levels.

Hi All.

I want to display the worklever group by the average of Reporttocount. I have the columns Work lever and Reporttocount.


I made the groups below, but I'm not getting the right values.

WL1+ = WL1+WL2+WL3+WL4+WL5+WL6
WL2+ = WL2+WL3+WL4+WL5+WL6
WL3+ = WL3+WL4+WL5+WL6

Anjaneyachari_0-1685970327375.png

Requirement:

1. Chart Type: Funnel
2. Horizontal axis - Work Level 1-6 plus additional section showing groupings. WL1+ is WL1-6, WL2+ is WL2-6, WL3+ is WL3-6

3. Calculate average of direct reports by Work Level

Anjaneyachari_1-1685970735303.png

Please help me if I can present a visual similar to the one above.

 

 

 

1 ACCEPTED SOLUTION
v-yanjiang-msft
Community Support
Community Support

Hi @Anonymous ,

According to your descripton, I create a sample.

vyanjiangmsft_0-1686119372619.png

Here's my solution.

1. Create a new table "Level", then add an index column, sort the Level column by index column. Create relationship between fact table and the new table with level column.

vyanjiangmsft_1-1686119469527.png

2. Create a calculated column.

Column =
IF (
    RELATED ( 'Table'[Value] ) <> BLANK (),
    RELATED ( 'Table'[Value] ),
    SWITCH (
        'Level'[Level],
        "WL1+", AVERAGEX ( ALL ( 'Table' ), 'Table'[Value] ),
        "WL2+",
            AVERAGEX (
                FILTER ( ALL ( 'Table' ), 'Table'[Work Level] <> "WL1" ),
                'Table'[Value]
            ),
        "WL3+",
            AVERAGEX (
                FILTER ( ALL ( 'Table' ), NOT ( 'Table'[Work Level] IN { "WL1", "WL2" } ) ),
                'Table'[Value]
            )
    )
)

Result:

vyanjiangmsft_2-1686119800656.png

If we put it in a funnel chart, it will sort by value instead of level.

vyanjiangmsft_3-1686119857881.png

We can instead use bar chart, get the result:

vyanjiangmsft_4-1686119928853.png

I attach my sample below for your reference.

 

Best Regards,
Community Support Team _ kalyj

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

View solution in original post

1 REPLY 1
v-yanjiang-msft
Community Support
Community Support

Hi @Anonymous ,

According to your descripton, I create a sample.

vyanjiangmsft_0-1686119372619.png

Here's my solution.

1. Create a new table "Level", then add an index column, sort the Level column by index column. Create relationship between fact table and the new table with level column.

vyanjiangmsft_1-1686119469527.png

2. Create a calculated column.

Column =
IF (
    RELATED ( 'Table'[Value] ) <> BLANK (),
    RELATED ( 'Table'[Value] ),
    SWITCH (
        'Level'[Level],
        "WL1+", AVERAGEX ( ALL ( 'Table' ), 'Table'[Value] ),
        "WL2+",
            AVERAGEX (
                FILTER ( ALL ( 'Table' ), 'Table'[Work Level] <> "WL1" ),
                'Table'[Value]
            ),
        "WL3+",
            AVERAGEX (
                FILTER ( ALL ( 'Table' ), NOT ( 'Table'[Work Level] IN { "WL1", "WL2" } ) ),
                'Table'[Value]
            )
    )
)

Result:

vyanjiangmsft_2-1686119800656.png

If we put it in a funnel chart, it will sort by value instead of level.

vyanjiangmsft_3-1686119857881.png

We can instead use bar chart, get the result:

vyanjiangmsft_4-1686119928853.png

I attach my sample below for your reference.

 

Best Regards,
Community Support Team _ kalyj

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 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.

Top Solution Authors
Top Kudoed Authors