Forum Discussion

SunilRaj's avatar
SunilRaj
Frequent Visitor
4 years ago

need help we are getting issue in to exclude that data which already count in previous month .

Hello ,

Please help as we are trying to create Power BI Report . we are getting issue in to exclude that data which already count in previous month .

select count(distinct tax_payer_no_own), tax_centre_no
from prop_owner_detail prop_det,tax_payer
where TRUNC(prop_det.enter_date)between'01-jan-2014'and'31-dec-2022'
and tax_payer.tax_payer_no= prop_det.tax_payer_no_own
and prop_det.tax_Payer_no not in
(select tax_Payer_no from prop_owner_detail where TRUNC(enter_date)<'01-jan-2012'AND fl_principal='Y')
and fl_principal='Y'

6 Replies