Skip to main content
Solved

row count in a column

  • Jun 6, 2024 7:34 AM UTC
  • 2 replies
  • 197 views

Forum|alt.badge.img

Hi Team,

 

I am working on task to check the number of rows in a column. I am using count of ATTRIBUTE_1 but not able to achieve it . can you please suggest a better approach. let me know if i miss anything.

 

Best answer by srija piratla

Hi @Karthikeyan ,

To check the number of rows in a column based on a dq rule. Please remove the attribute1 in the group by condition. This way it works.

I attached this DQ rule to monitoring project and ran it. 

Note - If you include attribute1 in the group by condition it will consider count of the attribute value instead of row. 

Hope this helps.

Regards,

Srija Piratla

View original

2 replies

Forum|alt.badge.img

Hi @Karthikeyan ,

To check the number of rows in a column based on a dq rule. Please remove the attribute1 in the group by condition. This way it works.

I attached this DQ rule to monitoring project and ran it. 

Note - If you include attribute1 in the group by condition it will consider count of the attribute value instead of row. 

Hope this helps.

Regards,

Srija Piratla


Forum|alt.badge.img
  • Author
  • Data Pioneer
  • Jun 7, 2024 5:32 AM UTC

Thanks @srija piratla it worked !!!