Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik and ServiceNow Partner to Bring Trusted Enterprise Context into AI-Powered Workflows. Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Mouni09
Contributor III
Contributor III

Logic Replication from Salesforce to Qlik

Hello Guys,

I am working replication of one dashboard from salesforce to Qlik

salesforce logic:
7-day fee (#):

IF(
and(
not(isblank(Ld.En_Date_Time__c)),
(Ld.En_Date_Time__c - CREATED_DATE) <= 7
),
1,
0
)

Rowcount: Count(Ld ID)

Final formula : sum(CDF1:SUM)
/
sum(RowCount)
CDF1 is nothing but 7-day fee (#)

 

Essentially it is taking the 7-day Engage # / Total lds during that time period
 

I need to show created_date as dimesnion, that to only 16 weeks of date starting from week, 1st week -- 3/2/2025 - 3/8/2025 to 16th week -- 6/15/2025 - 6/21/2025
dimesnion should also show like above weekstart- weekend as one point etc

Qlik I tried:
Dimension: 
=If(
WeekStart([Created_Date]) >= WeekStart(Today() - 7 * 16) and
WeekStart([Created_Date]) < WeekStart(Today()),
Date(WeekStart([Created_Date]), 'M/D/YYYY') & ' - ' & Date(WeekEnd([Created_Date]), 'M/D/YYYY')
)

Measure:

Num(
Sum(
If(
Not IsNull([Ld En Date])
and ([Le En Date] - [Created_Date]) <= 7,
1, 0
)
)
/
Count(distinct[Ld ID])
, '0.00%')

 

I'm not getting same result in qlik like in salesforce am I doing wrong anywhere?

Labels (4)
1 Reply
Kaushik2020
Creator III
Creator III

are you able to see the same date range in Qlik expression editor for the mentioned expression ?