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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
Anonymous
Not applicable

Counting problem

Hi Everyone, 

 

I have recently started to use PBI and DAX functions. 

 

I am struggling with the counting porblem. 

 

The data set that I have is below. 

 

Acceptance_CodeAction_Agreed_for_Update_Made_ByAction_Agreed_for_Update_On_TheAgreedCRA_Document_Updated_Made_ByCRA_Document_Updated_On_TheDateDeadline_for_Technical_Team_SignOffDocument_NumberDocument_Reissued_Made_ByDocument_Reissued_On_TheDocument_Reissued_Transmittal_NoPre_meeting_Review_Sign_Off_Made_ByPre_meeting_Review_Sign_Off_On_TheRevTechnical_Team_ActionTitleWBS
B00000Fri, 10 Jan 2020 12:05Fri 17 Jan 2020ABC-EW0700-XX-000-REP-1000020000020ABCDEW0700
B00000Fri, 10 Jan 2020 12:05Fri 17 Jan 2020ABC-EW0700-XX-000-REP-1000020000020ABCDEW0700
B00000Fri, 10 Jan 2020 12:05Fri 17 Jan 2020ABC-EW0700-XX-000-REP-1000020000020ABCDEW0700
B00000Fri, 10 Jan 2020 12:05Fri 17 Jan 2020ABC-EW0700-XX-000-REP-1000020000020ABCDEW0700
BKMJ, ADL, NM, IP, CY, VB, SB2020-04-29 00:00:00.0000000Y00Thu, 23 Apr 2020 02:26Thu 30 Apr 2020ABC-EW0000-XX-000-REG-100016000KJ28/04/20202No Further Action Required at this stage - possible update at Gate 3 following further progressive review, if no changes then reissue at next revision for Gate 3 in order to clear status B.EFGHEW0000
I00000Thu, 23 Apr 2020 02:55Thu 30 Apr 2020ABC-EW0203-XX-000-MDL-1000140000010XYZEW0203
BADL/ KMJ/ NM/ IP/ CY/ VB/ SB2020-04-29 00:00:00.0000000y00Thu, 23 Apr 2020 03:16Thu 30 Apr 2020ABC-EW0200-XX-000-DRW-100004000KJ2020-04-27 00:00:00.00000001Adjust title to state "Typical Compound Entrance".  No action on colour coding/ legend.LMNEW0200
BSB/KMJ/ARKP2020-05-06 00:00:00.0000000Y00Wed, 29 Apr 2020 23:05Wed 06 May 2020ABC-EW0000-XX-000-VID-100001000KMJ2020-05-01 00:00:00.00000002No change to deliverable, uprev and reissue for Gate 3.ARDEW0000
BADL/ KMJ/ ES/ IP/ SB2020-05-05 00:00:00.0000000Y00Thu, 30 Apr 2020 00:05Thu 07 May 2020ABC-EW0301-XX-000-DRW-100009000KMJ2020-05-04 00:00:00.00000001No specific action in response to this comment.  See separate items added below.MNKEW0301
BSB/ ADL/ KMJ/ ES/ IP2020-05-05 00:00:00.0000000Y00Thu, 30 Apr 2020 00:05Thu 07 May 2020ABC-EW0301-XX-000-DRW-100010000KMJ2020-05-04 00:00:00.00000001No Action Required (issue will be addressed by other actions)GHJEW0301
BSB/ADL/KMJ/ES2020-05-05 00:00:00.0000000Y00Thu, 30 Apr 2020 00:05Thu 07 May 2020ABC-EW0301-XX-000-DRW-100012000KMJ2020-05-04 00:00:00.00000001No Action Required (issue will be addressed by other actions)GYZEW0301
BSB/ADL/KMJ/ES2020-05-05 00:00:00.0000000Y00Thu, 30 Apr 2020 00:05Thu 07 May 2020ABC-EW0301-XX-000-DRW-100012000KMJ2020-05-04 00:00:00.00000001No Action Required.GYZEW0301
BSB/ADL/KMJ/ES2020-05-05 00:00:00.0000000Y00Thu, 30 Apr 2020 00:05Thu 07 May 2020ABC-EW0301-XX-000-DRW-100013000KMJ2020-05-04 00:00:00.00000001Adjust title block to indicate Sheet 5 at next issue (for Gate 3)MJHEW0301
BSB/ES/KMJ/ARKP2020-05-06 00:00:00.0000000Y00Thu, 30 Apr 2020 00:26Thu 07 May 2020ABC-EW0303-XX-000-DRW-100004000KMJ2020-05-01 00:00:00.00000001No Action Required in response to this comment, see specific actions against individual comments.MNLEW0303
BSB/KMJ/ES/ARKP2020-05-06 00:00:00.0000000Y00Thu, 30 Apr 2020 00:26Thu 07 May 2020ABC-EW0303-XX-000-DRW-100009000KMJ2020-05-05 00:00:00.00000001No Action Required at basic design. MNCEW0303
BSB/KMJ/ES/ARKP2020-05-06 00:00:00.0000000Y00Thu, 30 Apr 2020 00:26Thu 07 May 2020ABC-EW0303-XX-000-DRW-100009000KMJ2020-05-05 00:00:00.00000001No Action Required.MNCEW0303
BSB/KMJ/ES/ARKP2020/05/006Y00Thu, 30 Apr 2020 00:26Thu 07 May 2020ABC-EW0303-XX-000-DRW-100011000KMJ2020-05-01 00:00:00.00000001Treatment plant and associated HOY labels to be clarified and layering to be corrected at next revision.NMBEW0303
BSB/KMJ/ES/ARKP2020-05-06 00:00:00.0000000Y00Thu, 30 Apr 2020 00:26Thu 07 May 2020ABC-EW0303-XX-000-DRW-100014000KMJ2020-05-01 00:00:00.00000001No Action Required in response to this comment, see specific actions against individual comments.CDFEW0303
BSB/KMJ/ES/ARKP2020-05-06 00:00:00.0000000Y00Thu, 30 Apr 2020 00:35Thu 07 May 2020ABC-EW0303-XX-000-MDL-100013000KMJ2020-05-01 00:00:00.00000001No Action Required, requires reissue at next revision to close comment (reissue for GW3).CDEEW0303
CVB/ADL/KMJ/MW2020-05-07 00:00:00.0000000Y00Tue, 05 May 2020 02:46Tue 12 May 2020ABC-EW0402-XX-000-DRW-100008000KMJ2020-05-06 00:00:00.00000001No further action requiredCOFEW0402
CVB/ADL/KMJ/MW2020-05-07 00:00:00.0000000Y00Tue, 05 May 2020 02:46Tue 12 May 2020ABC-EW0402-XX-000-DRW-100008000KMJ2020-05-06 00:00:00.00000001No Action RequiredCOFEW0402
CVB/ADL/KMJ/MW2020-05-07 00:00:00.0000000Y00Tue, 05 May 2020 02:46Tue 12 May 2020ABC-EW0402-XX-000-DRW-100008000KMJ2020-05-06 00:00:00.00000001No Further Action RequiredCOFEW0402
CVB/KMJ/MW2020-05-07 00:00:00.0000000Y00Tue, 05 May 2020 02:46Tue 12 May 2020ABC-EW0402-XX-000-DRW-100009000KMJ2020-05-06 00:00:00.00000001Update title block with correct number 100009.CONEW0402
CVB/KMJ/MW2020-05-07 00:00:00.0000000Y00Tue, 05 May 2020 02:46Tue 12 May 2020ABC-EW0402-XX-000-DRW-100009000KMJ2020-05-06 00:00:00.00000001No Further Action RequiredCONEW0402
CVB/ADL/KMJ/Mw2020-05-07 00:00:00.0000000Y00Tue, 05 May 2020 02:46Tue 12 May 2020ABC-EW0402-XX-000-DRW-100012000KMJ2020-05-06 00:00:00.00000001No action requiredCUTEW0402
CVB/ADL/KMJ/MW2020-05-07 00:00:00.0000000Y00Tue, 05 May 2020 02:46Tue 12 May 2020ABC-EW0402-XX-000-DRW-100014000KMJ2020-05-06 00:00:00.00000001No action to subject drawingCRBEW0402
BSB/KMJ2020-05-14 00:00:00.0000000Y00Tue, 05 May 2020 16:00Tue 12 May 2020ABC-EW0301-XX-000-DRW-100019000KMJ2020-05-13 00:00:00.00000001Adjust reference on western contiunation line to drawing ….100014.CRNEW0301
BSB/KMJ2020-05-14 00:00:00.0000000Y00Tue, 05 May 2020 16:00Tue 12 May 2020ABC-EW0301-XX-000-DRW-100020000KMJ2020-05-13 00:00:00.00000001No Action RequiredCRUEW0301
BSB/KMJ2020-05-14 00:00:00.0000000Y00Tue, 05 May 2020 16:00Tue 12 May 2020ABC-EW0301-XX-000-DRW-100022000KMJ2020-05-13 00:00:00.00000001No Action RequiredERMEW0301
B00000Fri, 08 May 2020 01:06Fri 15 May 2020ABC-EW0400-XX-000-REP-1000000000030ERTEW0400
B00000Fri, 08 May 2020 01:06Fri 15 May 2020ABC-EW0400-XX-000-REP-1000000000030ERTEW0400
B00000Fri, 08 May 2020 01:06Fri 15 May 2020ABC-EW0400-XX-000-REP-1000000000030ERTEW0400
B00000Fri, 08 May 2020 01:06Fri 15 May 2020ABC-EW0401-XX-000-REP-1000010000030JRZEW0401
B00000Fri, 08 May 2020 01:06Fri 15 May 2020ABC-EW0401-XX-000-REP-1000010000030JRZEW0401
B00000Fri, 08 May 2020 01:15Fri 15 May 2020ABC-EW0000-XX-000-REG-100026000KMJ2020-05-13 00:00:00.00000004No Action RequiredDRMEW0000
B00000Fri, 08 May 2020 01:15Fri 15 May 2020ABC-EW0000-XX-000-REG-100026000KMJ2020-05-13 00:00:00.00000004No Action RequiredDRMEW0000
B00000Fri, 08 May 2020 01:15Fri 15 May 2020ABC-EW0000-XX-000-REG-100026000KMJ2020-05-13 00:00:00.00000004Include consideration of non-conductive columns as forward action. DRMEW0000
B00000Fri, 08 May 2020 01:15Fri 15 May 2020ABC-EW0000-XX-000-REG-100026000KMJ2020-05-13 00:00:00.00000004Replace text "Duplicated in 10" with corresponding text from EW0501-2DRMEW0000
B00000Fri, 08 May 2020 02:15Fri 15 May 2020ABC-EW0101-XX-000-DRW-1000220000010LDMEW0101
B00000Sat, 09 May 2020 00:15Sat 16 May 2020ABC-EW0000-XX-000-REG-1000350000020DRCEW0000
B00000Sat, 09 May 2020 01:45Sat 16 May 2020ABC-EW0302-XX-000-NOT-1000010000010GHKEW0302
CVB/SB/KMJ2020-05-14 00:00:00.0000000Y00Sat, 09 May 2020 08:57Sat 16 May 2020ABC-EW0602-XX-000-DRW-100009000KMJ2020-05-13 00:00:00.00000001Reissue drawing with Protective Markings addedJMPEW0602

 

What I want to achieve in power BI is a table showing  the counts which is shown below. 

 

The numbers shown in column 3 ownwards should count only one instance if the same document number has been commented multiple times. Hope to hear some suggestions from the community on this problem. 

 

Acceptance code

Total Docs at this status

Awaiting Tech Team

(This comes from Tecnical team reponse column)

Awaiting Pre Meeting Review

Awaiting  Agreement

Awaiting Update

Document Reissued

A

53

0

0

0

0

0

B

119

42

6

16

49

6

C

44

20

10

6

6

2

I

19

0

0

0

0

0

Total

235

62

16

22

55

8

 

Thank you very much. 

Rajiv verma 

1 ACCEPTED SOLUTION
saraMissBI
Resolver I
Resolver I

Hello @Anonymous ,

Please check out the file pbix file here. 

I hope it solves your request.

 

If my answer solves your issue, please give kudos and mark as solution 🙂

 

View solution in original post

2 REPLIES 2
saraMissBI
Resolver I
Resolver I

Hello @Anonymous ,

Please check out the file pbix file here. 

I hope it solves your request.

 

If my answer solves your issue, please give kudos and mark as solution 🙂

 

Greg_Deckler
Community Champion
Community Champion

You data is all scrunched together and very hard to read. But, it looks like you should unpivot your columns so that all of your categories are in a single column. Then this should be trivial.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 Power BI update to learn about new features.