Skip to main content
Solved

row count in a column

  • June 6, 2024
  • 2 replies
  • 88 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

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
  • June 7, 2024

Thanks @srija piratla it worked !!!