Skip to main content
Announcements
Qlik Introduces a New Era of Visualization! READ ALL ABOUT IT
cancel
Showing results for 
Search instead for 
Did you mean: 
StacyCui
Creator
Creator

Value changes when I select the dimension

Hi, I have aggregate two dimensions. And then When I don't select any thing. For 'RNE' is 41150. But When I click it. It changes into 939751. It's all based on the same condition. 

Here is the dimension:

=if(WildMatch(DE,'FA DE Enabled' ,'FA DE Design' ,'FA DE' ,'FA DE Edge&AI' ,'FA DE Design Service Enable' ,'FA Digital Solution')>0 ,'FA Digital Solution' ,DE)

Here is the Measure:

=SUM ( AGGR(

if(wildmatch(DE,'FA DE Enabled','FA DE Design','FA DE','FA DE Edge&AI','FA DE Design Service Enable','FA Digital Solution')>0
,Sum({<[FiscalYear]={$(v_CurrentYear)},DE={"FA DE Enabled"}>}FA_DE_Enable_OR)
+Sum( {<[FiscalYear]={$(v_CurrentYear)},DE={"FA DE Design"}>}[OR Value RMB])
+Sum({<[FiscalYear]={$(v_CurrentYear)},DE={"FA DE Design Service Enable"}>}FA_DE_DesignServiceEnable_OR)
+Sum({<[FiscalYear]={$(v_CurrentYear)},DE={"FA DE Edge&AI"}>}[OR Value RMB])
,Sum({<[FiscalYear]={$(v_CurrentYear)}>}[OR Value RMB])
) ,DE))

StacyCui_1-1675395237347.png

StacyCui_2-1675395259619.png

 

 

 

Labels (3)
2 Replies
PrashantSangle

Hello,

 

It is because your aggr(), in your expression you are doing aggregation on only on column, but you are expecting it to work for all dimension.

you have to include all dimension in your aggr()

 

Regards,

Prashant Sangle

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
StacyCui
Creator
Creator
Author

Hi, Thank for your reply. I really appreciated. I have changed the expression as follow. But, it shows 0

 

=SUM ( AGGR(

if(wildmatch(DE,'FA DE Enabled','FA DE Design','FA DE','FA DE Edge&AI','FA DE Design Service Enable','FA Digital Solution')>0
,Sum({<[FiscalYear]={$(v_CurrentYear)},DE={"FA DE Enabled"}>}FA_DE_Enable_OR)
+Sum( {<[FiscalYear]={$(v_CurrentYear)},DE={"FA DE Design"}>}[OR Value RMB])
+Sum({<[FiscalYear]={$(v_CurrentYear)},DE={"FA DE Design Service Enable"}>}FA_DE_DesignServiceEnable_OR)
+Sum({<[FiscalYear]={$(v_CurrentYear)},DE={"FA DE Edge&AI"}>}[OR Value RMB])
,Sum({<[FiscalYear]={$(v_CurrentYear)}>}[OR Value RMB])
)
,if(WildMatch(DE,'FA DE Enabled' ,'FA DE Design' ,'FA DE' ,'FA DE Edge&AI' ,'FA DE Design Service Enable' ,'FA Digital Solution'),'FA Digital Solution' ,DE)))

StacyCui_0-1675402442391.png