Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
imrasyed
Partner - Creator II
Partner - Creator II

Multiple Facts

Hi Experts,

I have sales and  Inventory tables.

I have concatenated both the fact tables and It is perfectly fine but the only thing is when i link Customer Dim table to fact table then I am getting Measure(Inventory)  whcih shd be zero.

.

Can you help me out how I can proceed in resolving this Issue?

1 Solution

Accepted Solutions
Chanty4u
MVP
MVP

concatenate two tables

but  add flags in both the tables to get correct result in front end

Tab1:

load

A,

B ,

0 as Flag

from sql  ;

Tab2:

load

A,

B .,

c,

d,

1 as flag

from sql  ;

frontend:

=sum({<Flag={0}>}Inventory)

=sum({<Flag={1}>}Profit)

View solution in original post

3 Replies
mdmukramali
Specialist III
Specialist III

Hi,

we need to have some more details about your Data Model.

so can you attached sample file with your existing Data Model

Thanks,

Mukram

Chanty4u
MVP
MVP

concatenate two tables

but  add flags in both the tables to get correct result in front end

Tab1:

load

A,

B ,

0 as Flag

from sql  ;

Tab2:

load

A,

B .,

c,

d,

1 as flag

from sql  ;

frontend:

=sum({<Flag={0}>}Inventory)

=sum({<Flag={1}>}Profit)

imrasyed
Partner - Creator II
Partner - Creator II
Author

I did that but My question is how to connect Customer Table to only sales fact table and not with the Inventory.

I just removed the Null values were creating the problem.

Thanks for your help.