Forum Discussion
Anonymous
6 years agoNot applicable
incremental refresh for 2 tables with different values
Hello everyone,
I have prepared a DATASET in POWERBI that I want to set as INCREMENTAL REFRESH.
I set RANGESTART and RANGEEND, and set INCREMENTAL REFRESH to two different tables with different values.
First table:
Second table:
I have created a new table and compiled these two tables together with APPEND QUERIES as I need the data from both for the report.
When I uploaded the DATASET and clicked on REFRESH it did bring all the data by the definition I set (3 months),
but when I clicked the second time (which should do INCREMENTAL REFRESH),
it again brought all the months to the two tables even though the setting is different.
How can you overcome this and divide the INCREMENTAL REFRESH,
but still unite the tables without hurting the incremental refresh?
the queries when i press refresh for the second time on the powerbi:
select top 1000
[_].[Phase],
[_].[T_Install],
[_].[T_Dynamic],
[_].[T_Click],
[_].[T_Click_REJECTED],
[_].[T_Click_OK],
[_].[P_INSTALL_OK],
[_].[P_INSTALL_REJECTED],
[_].[P_Dynamic_OK],
[_].[P_Dynamic_REJECTED],
[_].[P_Conversions],
[_].[C_INSTALL_OK],
[_].[C_INSTALL_REJECTED],
[_].[C_Dynamic_OK],
[_].[C_Dynamic_REJECTED],
[_].[C_Conversions],
[_].[Count],
[_].[EventName],
[_].[SendDate],
[_].[Date],
[_].[Network_ID],
[_].[Network_Status],
[_].[Account_ID],
[_].[Account_Status],
[_].[Campaign_ID],
[_].[Campaign_Status],
[_].[Publisher_ID],
[_].[Publisher_Status],
[_].[Creative_ID],
[_].[Creative_Name],
[_].[Asset_ID],
[_].[ClientIP_UsageType],
[_].[ClientIP_Region],
[_].[ClientIP_City],
[_].[ClientIP_CountryShort],
[_].[Campaign_CostModelID],
[_].[Campaign_ChargeModelID],
[_].[Campaign_AffiliateOfferID],
[_].[Campaign_Automated],
[_].[Publisher_CostModelID],
[_].[Publisher_ChargeModelID],
[_].[Publisher_ShowOfferWall],
[_].[Cost],
[_].[Revenue],
[_].[Campaign_DailyCap],
[_].[Publisher_DailyCap],
[_].[CampaignOutcomeType],
[_].[PublisherOutcomeType],
[_].[ExternalSource_ID],
[_].[PostbackStatusType],
[_].[Postback_HttpStatusCode]
from [dbo].[XXXXXX] as [_] -- NONCLICKS
where [_].[SendDate] >= convert(datetime2, '2019-11-01 12:00:00') and [_].[SendDate] <= convert(datetime2, '2020-02-12 00:00:00')
execute sp_executesql N'select [_].[Phase],
[_].[T_Install],
[_].[T_Dynamic],
[_].[T_Click],
[_].[T_Click_REJECTED],
[_].[T_Click_OK],
[_].[P_INSTALL_OK],
[_].[P_INSTALL_REJECTED],
[_].[P_Dynamic_OK],
[_].[P_Dynamic_REJECTED],
[_].[P_Conversions],
[_].[C_INSTALL_OK],
[_].[C_INSTALL_REJECTED],
[_].[C_Dynamic_OK],
[_].[C_Dynamic_REJECTED],
[_].[C_Conversions],
[_].[Count],
[_].[EventName],
[_].[SendDate],
[_].[Date],
[_].[Network_ID],
[_].[Network_Status],
[_].[Account_ID],
[_].[Account_Status],
[_].[Campaign_ID],
[_].[Campaign_Status],
[_].[Publisher_ID],
[_].[Publisher_Status],
[_].[Creative_ID],
[_].[Creative_Name],
[_].[Asset_ID],
[_].[ClientIP_UsageType],
[_].[ClientIP_Region],
[_].[ClientIP_City],
[_].[ClientIP_CountryShort],
[_].[Campaign_CostModelID],
[_].[Campaign_ChargeModelID],
[_].[Campaign_AffiliateOfferID],
[_].[Campaign_Automated],
[_].[Publisher_CostModelID],
[_].[Publisher_ChargeModelID],
[_].[Publisher_ShowOfferWall],
[_].[Cost],
[_].[Revenue],
[_].[Campaign_DailyCap],
[_].[Publisher_DailyCap],
[_].[CampaignOutcomeType],
[_].[PublisherOutcomeType],
[_].[ExternalSource_ID],
[_].[PostbackStatusType],
[_].[Postback_HttpStatusCode]
from [dbo].[CLICKS] as [_]
where [_].[SendDate] >= convert(datetime2, ''2019-11-01 12:00:00'') and [_].[SendDate] <= convert(datetime2, ''2020-02-12 00:00:00'')
union all select [_].[Phase],
[_].[T_Install],
[_].[T_Dynamic],
[_].[T_Click],
[_].[T_Click_REJECTED],
[_].[T_Click_OK],
[_].[P_INSTALL_OK],
[_].[P_INSTALL_REJECTED],
[_].[P_Dynamic_OK],
[_].[P_Dynamic_REJECTED],
[_].[P_Conversions],
[_].[C_INSTALL_OK],
[_].[C_INSTALL_REJECTED],
[_].[C_Dynamic_OK],
[_].[C_Dynamic_REJECTED],
[_].[C_Conversions],
[_].[Count],
[_].[EventName],
[_].[SendDate],
[_].[Date],
[_].[Network_ID],
[_].[Network_Status],
[_].[Account_ID],
[_].[Account_Status],
[_].[Campaign_ID],
[_].[Campaign_Status],
[_].[Publisher_ID],
[_].[Publisher_Status],
[_].[Creative_ID],
[_].[Creative_Name],
[_].[Asset_ID],
[_].[ClientIP_UsageType],
[_].[ClientIP_Region],
[_].[ClientIP_City],
[_].[ClientIP_CountryShort],
[_].[Campaign_CostModelID],
[_].[Campaign_ChargeModelID],
[_].[Campaign_AffiliateOfferID],
[_].[Campaign_Automated],
[_].[Publisher_CostModelID],
[_].[Publisher_ChargeModelID],
[_].[Publisher_ShowOfferWall],
[_].[Cost],
[_].[Revenue],
[_].[Campaign_DailyCap],
[_].[Publisher_DailyCap],
[_].[CampaignOutcomeType],
[_].[PublisherOutcomeType],
[_].[ExternalSource_ID],
[_].[PostbackStatusType],
[_].[Postback_HttpStatusCode]
from [dbo].[NONCLICKS] as [_]
where [_].[SendDate] >= convert(datetime2, ''2019-11-01 12:00:00'') and [_].[SendDate] <= convert(datetime2, ''2020-02-12 00:00:00'')'
how can i load each table for its own with the configured parameters (14 days for clicks, 3 months for nonclicks)?1 Reply
- v-frfei-msftCommunity Support
Hi Anonymous ,
Incremental refresh is available on the context menu for tables.