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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Phil-osophy
Helper I
Helper I

Count Across Multiple Columns

Hi everyone,

I'm new to Power BI and having some difficulty doing some analysis:

 

I want to be able to create a filter of the managers name, that when i select a manager, their top three error codes will be returned.

 

If there is more than one error listed in "Transaction error code" , the column "Error code for analysis" is multiple, and the errors are split up in the columns "Error code for multiple 1...N"

 

their are 7 error codes in total:

K1  - incorrect invoice amount entered

K2 - incorrect customer name entered

K3 - incorrect dates entered

L1 - customer account no longer exists

L2 - customer didnt submit all documents

M1 - manager approval pending

M2 - other

 

Here is my dataset:

 

 

sample dataset for pbi forum.PNG

 

 

 

Here is our expected output :

 

expected output.PNG

 

 

Thank You!

1 ACCEPTED SOLUTION

Hi,

You may download my PBI file from here.

Hope this helps.

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

11 REPLIES 11
Ashish_Mathur
Super User
Super User

Hi,

Would you be OK with a 3 column layout of your final output - Name, Type of error and error count?


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Hey @Ashish_Mathur !

that could work, but would that mean that the 2nd and 3rd most frequent errors would be on their own rows? ideally all three would be listed in the same row to be more visually appealing

 

thanks

Hi,

Yes, they would be on their own rows.  Would you be OK with that?


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Hey @Ashish_Mathur ,

 

that works just fine!

 

Thanks

Hi,

Share the link from where i can download your Excel file.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Hi,

I cannot interpret row 2.  There are 2 types of errors - K2 and M2 but the count is 3.  So does that mean that there are 3 errors each for K2 and M2 or is it split as 2 and 1?  So is the ase with rows 9 and 10.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Hey!

 

thats my mistake when entering the values. Row 2 should say 2 errors and row 9 should say 1 error.

 

Thanks for pointing that out!

Hi,

You may download my PBI file from here.

Hope this helps.

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Thank you @Ashish_Mathur 

 

thats a perfect solution!

You are welcome.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.