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
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
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.