Forum Discussion

jackypatel's avatar
jackypatel
Helper I
2 years ago
Solved

Unique date wise unique Product Count

Hi...... My Database name is "PDI DATA"&  i required Unique date wise unique names count. E.g. 27-03-2021 has "HM-12.5A-LM-ACC-NS" count is 1 & 27-03-2021 has "12.5C-FDB-ACC" also count is 1. And at the end i need Grand total of counts

 

Refer below table for data

Inspection DateProduct
27-03-2021HM-12.5A-LM-ACC-NS
27-03-2021HM-12.5B-LM-ACC-NS
27-03-202112.5C-FDB-ACC
27-03-2021LTT8-20
25-03-2021CLR400000-A2
26-03-2021LD200686-E2
26-03-2021LD200686-E2
26-03-2021LD200686-E2
26-03-2021LD200686-E2
25-03-2021LDRR24-CDL
25-03-2021LDRR24-CDL
25-03-2021LL725003-D1
25-03-2021LL725003-D1
25-03-2021LL725003-D1
25-03-2021LL725003-D1
25-03-2021LL725003-D1
25-03-2021LL725003-D1
25-03-2021LL725003-D1
25-03-2021LDLRC-20PRO-CDL
25-03-2021LT8-20-865-2
25-03-2021LT8-20-865-2
25-03-2021LT8-20-865-2
25-03-2021LT8-20-865-2
25-03-2021LT8-20-865-2
25-03-2021LT8-20-865-2
25-03-2021LT8-20-865-2
  • PowerPivot is crashing on my system so i cannot frame this solution in MS Excel.

10 Replies

  • Hi,

    Drag Inspection date to the visual and write this measure

    Measure = distinctcount('PDA Data'[Product])

    Hope this helps.

    • jackypatel's avatar
      jackypatel
      Helper I

      No its not working... It is count the Unique PDI Data [Product]... i need Unique Date Wise, unique Product Count...

      • Ashish_Mathur's avatar
        Ashish_Mathur
        Super User

        Based on the data that you have shared, show the expected result clearly.

  • Sir, Thanx for the Help. In addition to that need counting of accepted Lot.

    Example-

    My Database name is "PDI DATA"&  i required Unique date wise unique names count & Accepted, rejected Count too. E.g. 27-03-2021 has "HM-12.5A-LM-ACC-NS" count is 1 and Accepted Count 1 & 27-03-2021 has "12.5C-FDB-ACC" also count is 1and Accepted Count 1. And at the end i need Grand total of counts

     

    Inspection DateProductResult
    27-03-2021HM-12.5A-LM-ACC-NSAccepted
    27-03-2021HM-12.5B-LM-ACC-NSAccepted
    27-03-202112.5C-FDB-ACCAccepted
    27-03-2021LTT8-20Accepted
    25-03-2021CLR400000-A2Rejected
    26-03-2021LD200686-E2Accepted
    26-03-2021LD200686-E2Accepted
    26-03-2021LD200686-E2Accepted
    26-03-2021LD200686-E2Accepted
    25-03-2021LDRR24-CDLRejected
    25-03-2021LDRR24-CDLRejected
    25-03-2021LL725003-D1Accepted
    25-03-2021LL725003-D1Accepted
    25-03-2021LL725003-D1Accepted
    25-03-2021LL725003-D1Accepted
    25-03-2021LL725003-D1Accepted
    25-03-2021LL725003-D1Accepted
    25-03-2021LL725003-D1Accepted
    25-03-2021LDLRC-20PRO-CDLAccepted
    25-03-2021LT8-20-865-2Accepted
    25-03-2021LT8-20-865-2Accepted
    25-03-2021LT8-20-865-2Accepted
    25-03-2021LT8-20-865-2Accepted
    25-03-2021LT8-20-865-2Accepted
    25-03-2021LT8-20-865-2Accepted
    25-03-2021LT8-20-865-2Accepted