Forum Discussion

1984's avatar
1984
Icon for Helper I rankHelper I
2 years ago
Solved

countrows matching date

Hi Helpful Community I have two related tables table one with a column MMM-YY (Jan-Dec) and the other table 2 with raw rowdata. I would like to create a second column in table one that counts the ro...
  • Anonymous's avatar
    Anonymous
    2 years ago

    Hi 1984 ,

    Based on the information you provided, I created an example. You can follow the steps below:

     

    1.Add a column to count the number of rows in Table2.

    Number of Rows = CALCULATE(COUNTROWS(Table2), FILTER(Table2, Table2[Column1] = 'Table'[Date]))

     

    Final output:

    How to Get Your Question Answered Quickly - Microsoft Fabric Community

    If it does not help, please provide more details with your desired out put and pbix file without privacy information.

     

    Best Regards,

    Yifan Wang

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.