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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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