Get number of records after a dataset build

pritam003
Level 2
Get number of records after a dataset build

Hi Team,

we want to setup a notification where we could get the record count of a dataset after that is build.

can you please help in this 

 

TIA 

pritam

0 Kudos
2 Replies
HarizoR
Developer Advocate

Hi pritam003,

You can achieve this with a Scenario that would: 

* build your dataset,

* compute its metrics (that should include the number of records),

* retrieve the metric of interest and save it as a Scenario variable (this would likely be done by code using the metrics API: https://doc.dataiku.com/dss/latest/python-api/metrics.html,

* communicate that metric using a Reporter from that Scenario.

Hope this helps!

 

Best,

Harizo

0 Kudos
Turribeach

Much easier to do setting a scenario variable that retrieves the value of the metric. Read this post and the one it links to:

https://community.dataiku.com/t5/Using-Dataiku/Retrieving-the-value-of-a-metric-in-a-scenario-or-as-...

Here is the documentation:

https://doc.dataiku.com/dss/latest/scenarios/variables.html#retrieving-the-value-of-a-metric

 

0 Kudos

Setup info

?
Tags (1)
A banner prompting to get Dataiku