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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
krislives42
Regular Visitor

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 is generated using a Power Apps UI. At the moment the powers that be, are analysing said data by copy and pasting it into Excel. With a couple of macros they are getting the results they need. However, I have now been charged with trying to get the Power suite to handle the data without that manual copy and paste.

 

So I have started to look into Power BI, I have just managed to get the company to allow me to install the Desktop App. I'll layout the current setup briefly, and see if the great brains of this community can point me in the right direction, I will hazard a guess that for the more experienced it will be simply answered.

 

So the sharepoint list has the basic information, the Name of the Auditor, the name of the person being audited, and then each column for the answer response. We have 'Y', 'N', 'NA' and 'T' as available options. What I need to show is the amount of N's per column, and then displayed alongside the question. as a percentage of the total number of audits in the sharepoint list. 

 

I.E Did the person pass the Audit? ¦ Total Number of N's ¦ Percentage of N's against total audits conducted.

 

The issue I am trying to overcome is in excel this is quite simple. CountIF('Sheet Name'!'Column Number' = "N"), drag down remaining rows.

 

Is this possible within Power BI?  

 

**Update** So far I have created a new query that drags the data from Sharepoint into Power BI. I have had a play with transforming the data and stripping out the information that is not required. I just do not know how to add that into a custom table with the results I need at this time. 

1 ACCEPTED SOLUTION

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.

 

vkkfmsft_0-1655279989823.pngvkkfmsft_1-1655280010992.png

 

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] )
    )
)

vkkfmsft_2-1655280535986.png

 

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.

View solution in original post

4 REPLIES 4
v-kkf-msft
Community Support
Community Support

Hi @krislives42 ,

 

Please create these measures.

 

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

vkkfmsft_0-1655110829599.pngvkkfmsft_1-1655110839664.png

 

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.

 

Hi @v-kkf-msft ,

 

Thank you very much for taking the time to send that across. Building on that, what if that same example had multiple answer columns. Answer, Answer 1, Answer 2 etc.

 

Would I need an individual measure for each column, or is there something similar to ForEach, that would then run for me?

 

Again, huge thanks already for taking the time to help.

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.

 

vkkfmsft_0-1655279989823.pngvkkfmsft_1-1655280010992.png

 

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] )
    )
)

vkkfmsft_2-1655280535986.png

 

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.

Absolutely brilliant @v-kkf-msft ,

 

Thank you so much for helping me out on that one. Big thumbs up and accepted as a solution 100%.

 

Many thanks,

 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors