how to extract only current month data

sgnarkhede2016
sgnarkhede2016 New Altair Community Member
edited November 2024 in Community Q&A
Hello,

how to extract only current week/month/quarter data from dataset
e.g In this month current date is 13thAug2020, I want to extract only these 13days data from dataset.
How can i do it?
Tagged:

Answers

  • hbajpai
    hbajpai New Altair Community Member
    Hey @sgnarkhede2016

    You can use date_get() function in generate attributes operator to fetch Day, Week and Month from a Date attribute. You can use a simple if-else to generate the quarter from month thereon.