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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
annnvy21
Frequent Visitor

DUPLICATE Active customer per Revenue Group Recognition and Ragged Hierarchy Percentage

Hi Power BI community,
I have one case that Revenue is formed by 4 revenue groups, active customer per group:
Revenue Group A: 200 active customers
Revenue Group B: 185 active customers
Revenue Group C: 205 active customers
Revenue Group 😧 389 active customers
But Total Revenue includes only 528 active customers because one customer can use multiple revenue groups.
I want to display the matrix table in power bi that presents (Total Group is a subcategory of 4 revenue groups above)
Total Group: 495 active customers
Revenue Group A: 200 active customers
Revenue Group B: 185 active customers
Revenue Group C: 205 active customers
Revenue Group 😧 389 active customers
Can it work?


If it works, then can I process this advanced case?
I want to calculate the Adoption rate monthly like the attachment below (The adoption rate is calculated by each detail category's active customers divided by the Total active customer.)

annnvy21_1-1687924842790.png

Many thanks,
Vy

 

 

 

 

 

3 REPLIES 3
annnvy21
Frequent Visitor

Hi @v-yanjiang-msft ,
I have a parent-child hierarchy table like this, all values are attached to a 4-tier work breakdown structure Revenue -> Mapping lv1 -> Mapping lv2 -> Mapping lv3. Does it work in a parent-child hierarchy matrix? Because my project has lots of detail products, I use parent-child hierarchy and flexible drill-through which Parent product to analyze. When showing your solution in a matrix, it's gonna be a long list and can not filter each Parent product.

RevenueMapping lv1Mapping lv2Mapping lv3
Aa1  
Aa2  
Aa2  
Bb1b1.1 
Bb1b1.2b1.2.1
Bb1b1.2b1.2.2
Bb2b2.1 
Bb2b2.2 
Cc1c1.1 
Cc1c1.1 
Cc2c2.1 
Cc2c2.2c2.2.1
Cc2c2.2c2.2.2
Cc2c2.3 
Cc2c2.4 
Dd1  

 

Anyway, thanks for your solution!

Hi @annnvy21 ,

If there's a hierarchy in your sample, the value of A should be sum of a1,a2 and a3, but it isn't in your data.

vyanjiangmsft_0-1688461312209.png

Best regards,

Community Support Team_yanjiang

v-yanjiang-msft
Community Support
Community Support

Hi @annnvy21 ,

According to your description, here's my sample data:

vyanjiangmsft_0-1688114019339.png

TOTAL table:

vyanjiangmsft_1-1688114037185.png

Here's my solution:

1.Create a new table:

vyanjiangmsft_2-1688114102598.png

2.Create a new measure:

Measure =
SWITCH (
    MAX ( 'Column'[Column] ),
    "Active customer", MAX ( 'Table'[Active customer] ),
    "Adoption rate",
        FORMAT (
            DIVIDE (
                MAX ( 'Table'[Active customer] ),
                MAXX (
                    FILTER ( 'TOTAL', 'TOTAL'[Date] = MAX ( 'Table'[Date] ) ),
                    'TOTAL'[TOTAL ACTIVE CUSTOMER]
                )
            ),
            "0.00%"
        )
)

In a matrix,

vyanjiangmsft_3-1688114221220.png

I attach my sample below for your reference.

 

Best regards,

Community Support Team_yanjiang

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

 

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

April Fabric Community Update

Fabric Community Update - April 2024

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