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
datavigilante
Helper I
Helper I

Determine which column has the most commonality and what is it's percent of total

Hello all,

 

I am trying to analyze data on different outcomes and determine which factor is most common for a specific outcome.  To help explain, I've put some example data in the screenshot below:

 

image.png

 

I can use a slicer to show either the "Good" or "Bad" outcome records only.  I can also determine the most common value in each column using a technique I found in another topic, but I don't know how to compare the different columns to see which one has the most commonality (the green highlighted values).  I guess I would like the output to look like this:

 

OutcomeMost Important FactorPercent of Total
GoodFactor 1 - C50.00%
BadFactor 2 - E83.33%

 

Thanks so much for your help!

David

1 ACCEPTED SOLUTION
v-jiascu-msft
Employee
Employee

Hi David,

 

Firstly, you need to unpivot these there Factor columns into rows. Then you can try these measures below. There are two methods. You can check it out in this file. The following method would be easier.

 

Most Important Factor 2 =
CONCATENATEX (
    TOPN (
        1,
        SUMMARIZE (
            'Table1',
            Table1[Outcome],
            'Table1'[Attribute],
            'Table1'[Value],
            "Num", COUNT ( 'Table1'[Value] )
        ),
        [Num]
    ),
    [Attribute] & [Value]
)
Percent of Total 2 =
MAXX (
    SUMMARIZE (
        'Table1',
        Table1[Outcome],
        Table1[Attribute],
        'Table1'[Value],
        "percentagedd", COUNT ( Table1[Value] )
            / CALCULATE (
                COUNT ( Table1[Value] ),
                ALLEXCEPT ( 'Table1', 'Table1'[Outcome], 'Table1'[Attribute] )
            )
    ),
    [percentagedd]
)

Determine which column has the most commonality and what is it's percent of total .jpg

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Best Regards!

Dale

Community Support Team _ Dale
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

2 REPLIES 2
v-jiascu-msft
Employee
Employee

Hi David,

 

Firstly, you need to unpivot these there Factor columns into rows. Then you can try these measures below. There are two methods. You can check it out in this file. The following method would be easier.

 

Most Important Factor 2 =
CONCATENATEX (
    TOPN (
        1,
        SUMMARIZE (
            'Table1',
            Table1[Outcome],
            'Table1'[Attribute],
            'Table1'[Value],
            "Num", COUNT ( 'Table1'[Value] )
        ),
        [Num]
    ),
    [Attribute] & [Value]
)
Percent of Total 2 =
MAXX (
    SUMMARIZE (
        'Table1',
        Table1[Outcome],
        Table1[Attribute],
        'Table1'[Value],
        "percentagedd", COUNT ( Table1[Value] )
            / CALCULATE (
                COUNT ( Table1[Value] ),
                ALLEXCEPT ( 'Table1', 'Table1'[Outcome], 'Table1'[Attribute] )
            )
    ),
    [percentagedd]
)

Determine which column has the most commonality and what is it's percent of total .jpg

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Best Regards!

Dale

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

It will take me some time to absorb the concepts and then apply these techniques to my real data, but this looks great Dale.

 

Thanks so much for your help!

David

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.