Forum Discussion

ukantkumar123's avatar
ukantkumar123
Frequent Visitor
4 years ago

How to make custom column using sub-category count

I need to make custom coumn using "Category From A" count ?? ( Last column is expected coumn )

 

 

Please have a look on table !!

Category From ASub-Category From Table ASub-Category Used  From Table BUser Name from Table BExpected Count using Category From A 
Soil InvestigationTesingTesingRock1
FoundationOpen Foundation   
FoundationPile Foundation   
SubstructurePier   
SubstructurePier CapPier CapRock2
SubstructurePier CapPier CapTerry2
SuperstructureGirderGirderTerry1
SuperstructureGirderGirderSamson1
SuperstructureBearingBearingTerry1
SuperstructureBearingBearingSanju1

 

 

 

 

 

 

 

4 Replies

  • ukantkumar123 , create a new measure like

     

    countx(filter(allselected(tableA), TableA[Sub-Category] = max(TableA[Sub-Category] ) ), TableA[Sub-Category] )

     

     

    or new column in Table A

    countx(filter(tableA, TableA[Sub-Category] = earlier(TableA[Sub-Category] ) ), TableA[Sub-Category] )

    • ukantkumar123's avatar
      ukantkumar123
      Frequent Visitor

      Not Matching with "Expected Count using Category From A  cloumn"

       

       

      • ukantkumar123's avatar
        ukantkumar123
        Frequent Visitor

        amitchandak @ta

         

        Basically i have 2 table "TableA" and "TableB"

        "TableA" data is fixed only TableB data filled by user.

        Now I have Joined the table using "Sub-Category" Since it is a commnon on both the table

        Now i need to count the based on "category" , "Sub-Category" and "User Name"

        Cause For same category , for Sub-Category "user" can feed the data .



        A kind of Group by Count ??