Forum Discussion

krislives42's avatar
krislives42
Regular Visitor
4 years ago
Solved

Data handling help

Good afternoon all,   Firstly, I would like to apologise if this is something that has already been covered in an alternative post.   I am working with a sharepoint list of audit results. Which i...
  • v-kkf-msft's avatar
    v-kkf-msft
    4 years ago

    Hi krislives42 ,

     

    If there are multiple answer columns and you don't want to create a separate measure for each column. Then first you need to unpivot all answer columns in Power Query Editor.

     

     

    Then please create these measures.

     

    Total Number of N's = 
    CALCULATE (
        COUNT ( 'Table'[Value] ), 
        VALUES ( 'Table'[Attribute] ),
        FILTER ( ALL ( 'Table' ), 'Table'[Value] = "N" )
    )
    Percentage of N's against total audits conducted = 
    DIVIDE (
        [Total Number of N's],
        CALCULATE (
            COUNT ( 'Table'[Value] ),
            ALLEXCEPT ( 'Table', 'Table'[Attribute] )
        )
    )

     

    If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
    Best Regards,
    Winniz
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.