Forum Discussion

icturion's avatar
icturion
Resolver II
4 years ago
Solved

Distinc count by record values

Hi,

hope someone can help me with the following:
Based on the table below, I want to calculate how often a certain combination occurs per unique MO_Monsternummer value?

concerns the combinations based on column "Categorie coli":

  • 1 and 2
  • 1 and 4
  • 3 and 2
  • 3 and 4

The result i'm looking for is this:

regards 

ICTURION

5 Replies

    • icturion's avatar
      icturion
      Resolver II

      thank you. I didn't realize the solution was so tricky

    • icturion's avatar
      icturion
      Resolver II

      Hi CNENFRNL,

       

      Is it also possible to calculate the numbers per category in a separate measure? I also want to be able to calculate with the different results per category. For example by dividing the number of category "1 and 2" by the number of category "1 and 4". so 2/5 = 0.4

    • icturion's avatar
      icturion
      Resolver II
      MO_MonsternummerCategorie coli
      1231
      1232
      2341
      2344
      3453
      3452
      4561
      4564
      5671
      5674
      6781
      6784
      7891
      7894
      7893
      7892

      Hi SMPA01, her is the sample data in a table format. Thank you