<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Expression is showing null when selecting the Month field in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Expression-is-showing-null-when-selecting-the-Month-field/m-p/1543675#M745192</link>
    <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Expression MTD is showing the correct value as shown in the below image. But when a Month field is selected it is&amp;nbsp;becoming a null value.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="1.PNG" style="width: 655px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/5859i76B393063F6692A8/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.PNG" alt="1.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;When September-2018 is selected it is showing null value&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="2.PNG" style="width: 663px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/5860i337BB67A9CAD013B/image-size/large?v=v2&amp;amp;px=999" role="button" title="2.PNG" alt="2.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;What I am missing in my MTD expression, attached is the file for reference.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;Aggr(If(Only({1} Project_Number) = Above(TOTAL Only({1} Project_Number)),
(
(
	if(Cost_Code=8,Sum({&amp;lt;Cost_Code={8}&amp;gt;}Prior_Updated_OEC_Budget),
	if(Cost_Code=10,Sum({&amp;lt;Cost_Code={10}&amp;gt;}Prior_Updated_OEC_Budget),
	if(Cost_Code=12,Sum({&amp;lt;Cost_Code={12}&amp;gt;}Prior_Updated_OEC_Budget),
	Sum({&amp;lt;Cost_Code={8,10,12}&amp;gt;}Prior_Updated_OEC_Budget))))
	-
	if(Cost_Code=8,Sum({&amp;lt;Cost_Code={8}&amp;gt;}Prior_Forecast_Cost_to_Complete),
	if(Cost_Code=10,Sum({&amp;lt;Cost_Code={10}&amp;gt;}Prior_Forecast_Cost_to_Complete),
	if(Cost_Code=12,Sum({&amp;lt;Cost_Code={12}&amp;gt;}Prior_Forecast_Cost_to_Complete),
	Sum({&amp;lt;Cost_Code={8,10,12}&amp;gt;}Prior_Forecast_Cost_to_Complete))))
)
*
(
	If(Cost_Code=8, Sum({&amp;lt;Cost_Code={8}&amp;gt;}POC)/100
	-
	Above(TOTAL Sum({&amp;lt;MonthYear,Year,YearMonth,Cost_Code={8}&amp;gt;}POC)/100, Num(Month)),
	If(Cost_Code=10, Sum({&amp;lt;Cost_Code={10}&amp;gt;}POC)/100
	-
	Above(TOTAL Sum({&amp;lt;MonthYear,Year,YearMonth,Cost_Code={10}&amp;gt;}POC)/100, Num(Month)),
	If(Cost_Code=12, Sum({&amp;lt;Cost_Code={12}&amp;gt;}POC)/100
	-
	Above(TOTAL Sum({&amp;lt;MonthYear,Year,YearMonth,Cost_Code={12}&amp;gt;}POC)/100, Num(Month)),
	Sum({&amp;lt;Cost_Code={8,10,12}&amp;gt;}POC)/300
	-
	Above(TOTAL Sum({&amp;lt;MonthYear,Year,YearMonth,Cost_Code={8,10,12}&amp;gt;}POC)/300, Num(Month)))))	
)
)
- 
Alt(Above(TOTAL
((
	if(Only({&amp;lt;MonthYear, Snapshot_Date&amp;gt;}Cost_Code)=8,Sum({&amp;lt;MonthYear, Snapshot_Date,Cost_Code={8}&amp;gt;}Prior_Updated_OEC_Budget),
	if(Only({&amp;lt;MonthYear, Snapshot_Date&amp;gt;}Cost_Code)=10,Sum({&amp;lt;MonthYear, Snapshot_Date,Cost_Code={10}&amp;gt;}Prior_Updated_OEC_Budget),
	if(Only({&amp;lt;MonthYear, Snapshot_Date&amp;gt;}Cost_Code)=12,Sum({&amp;lt;MonthYear, Snapshot_Date,Cost_Code={12}&amp;gt;}Prior_Updated_OEC_Budget),
	Sum({&amp;lt;MonthYear, Snapshot_Date,Cost_Code={8,10,12}&amp;gt;}Prior_Updated_OEC_Budget))))
	-
	if(Only({&amp;lt;MonthYear, Snapshot_Date&amp;gt;}Cost_Code)=8,Sum({&amp;lt;MonthYear, Snapshot_Date,Cost_Code={8}&amp;gt;}Prior_Forecast_Cost_to_Complete),
	if(Only({&amp;lt;MonthYear, Snapshot_Date&amp;gt;}Cost_Code)=10,Sum({&amp;lt;MonthYear, Snapshot_Date,Cost_Code={10}&amp;gt;}Prior_Forecast_Cost_to_Complete),
	if(Only({&amp;lt;MonthYear, Snapshot_Date&amp;gt;}Cost_Code)=12,Sum({&amp;lt;MonthYear, Snapshot_Date,Cost_Code={12}&amp;gt;}Prior_Forecast_Cost_to_Complete),
	Sum({&amp;lt;MonthYear, Snapshot_Date,Cost_Code={8,10,12}&amp;gt;}Prior_Forecast_Cost_to_Complete))))
)
*
(
	If(Only({&amp;lt;MonthYear, Snapshot_Date&amp;gt;}Cost_Code)=8, Sum({&amp;lt;MonthYear, Snapshot_Date,Cost_Code={8}&amp;gt;}POC)/100
	-
	Above(TOTAL Sum({&amp;lt;MonthYear,Year,Snapshot_Date,YearMonth,Cost_Code={8}&amp;gt;}POC)/100, Num(Month)),
	If(Only({&amp;lt;MonthYear, Snapshot_Date&amp;gt;}Cost_Code)=10, Sum({&amp;lt;MonthYear, Snapshot_Date,Cost_Code={10}&amp;gt;}POC)/100
	-
	Above(TOTAL Sum({&amp;lt;MonthYear,Year,Snapshot_Date,YearMonth,Cost_Code={10}&amp;gt;}POC)/100, Num(Month)),
	If(Only({&amp;lt;MonthYear, Snapshot_Date&amp;gt;}Cost_Code)=12, Sum({&amp;lt;MonthYear, Snapshot_Date,Cost_Code={12}&amp;gt;}POC)/100
	-
	Above(TOTAL Sum({&amp;lt;MonthYear,Year,Snapshot_Date,YearMonth,Cost_Code={12}&amp;gt;}POC)/100, Num(Month)),
	Sum({&amp;lt;MonthYear, Snapshot_Date,Cost_Code={8,10,12}&amp;gt;}POC)/300
	-
	Above(TOTAL Sum({&amp;lt;MonthYear,Year, Snapshot_Date,MonthYear,YearMonth,Cost_Code={8,10,12}&amp;gt;}POC)/300, Num(Month)))))		
))
),0),
(
(
	if(Cost_Code=8,Sum({&amp;lt;Cost_Code={8}&amp;gt;}Prior_Updated_OEC_Budget),
	if(Cost_Code=10,Sum({&amp;lt;Cost_Code={10}&amp;gt;}Prior_Updated_OEC_Budget),
	if(Cost_Code=12,Sum({&amp;lt;Cost_Code={12}&amp;gt;}Prior_Updated_OEC_Budget),
	Sum({&amp;lt;Cost_Code={8,10,12}&amp;gt;}Prior_Updated_OEC_Budget))))
	-
	if(Cost_Code=8,Sum({&amp;lt;Cost_Code={8}&amp;gt;}Prior_Forecast_Cost_to_Complete),
	if(Cost_Code=10,Sum({&amp;lt;Cost_Code={10}&amp;gt;}Prior_Forecast_Cost_to_Complete),
	if(Cost_Code=12,Sum({&amp;lt;Cost_Code={12}&amp;gt;}Prior_Forecast_Cost_to_Complete),
	Sum({&amp;lt;Cost_Code={8,10,12}&amp;gt;}Prior_Forecast_Cost_to_Complete))))
)
*
(
	If(Cost_Code=8, Sum({&amp;lt;Cost_Code={8}&amp;gt;}POC)/100
	-
	Above(TOTAL Sum({&amp;lt;MonthYear,Year,YearMonth,Cost_Code={8}&amp;gt;}POC)/100, Num(Month)),
	If(Cost_Code=10, Sum({&amp;lt;Cost_Code={10}&amp;gt;}POC)/100
	-
	Above(TOTAL Sum({&amp;lt;MonthYear,Year,YearMonth,Cost_Code={10}&amp;gt;}POC)/100, Num(Month)),
	If(Cost_Code=12, Sum({&amp;lt;Cost_Code={12}&amp;gt;}POC)/100
	-
	Above(TOTAL Sum({&amp;lt;MonthYear,Year,YearMonth,Cost_Code={12}&amp;gt;}POC)/100, Num(Month)),
	Sum({&amp;lt;Cost_Code={8,10,12}&amp;gt;}POC)/300
	-
	Above(TOTAL Sum({&amp;lt;MonthYear,Year,YearMonth,Cost_Code={8,10,12}&amp;gt;}POC)/300, Num(Month)))))
)
)
), Project_Number, Year,MonthYear)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Bhavesh&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 04:28:01 GMT</pubDate>
    <dc:creator>bhaveshp90</dc:creator>
    <dc:date>2024-11-16T04:28:01Z</dc:date>
    <item>
      <title>Expression is showing null when selecting the Month field</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-is-showing-null-when-selecting-the-Month-field/m-p/1543675#M745192</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Expression MTD is showing the correct value as shown in the below image. But when a Month field is selected it is&amp;nbsp;becoming a null value.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="1.PNG" style="width: 655px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/5859i76B393063F6692A8/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.PNG" alt="1.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;When September-2018 is selected it is showing null value&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="2.PNG" style="width: 663px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/5860i337BB67A9CAD013B/image-size/large?v=v2&amp;amp;px=999" role="button" title="2.PNG" alt="2.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;What I am missing in my MTD expression, attached is the file for reference.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;Aggr(If(Only({1} Project_Number) = Above(TOTAL Only({1} Project_Number)),
(
(
	if(Cost_Code=8,Sum({&amp;lt;Cost_Code={8}&amp;gt;}Prior_Updated_OEC_Budget),
	if(Cost_Code=10,Sum({&amp;lt;Cost_Code={10}&amp;gt;}Prior_Updated_OEC_Budget),
	if(Cost_Code=12,Sum({&amp;lt;Cost_Code={12}&amp;gt;}Prior_Updated_OEC_Budget),
	Sum({&amp;lt;Cost_Code={8,10,12}&amp;gt;}Prior_Updated_OEC_Budget))))
	-
	if(Cost_Code=8,Sum({&amp;lt;Cost_Code={8}&amp;gt;}Prior_Forecast_Cost_to_Complete),
	if(Cost_Code=10,Sum({&amp;lt;Cost_Code={10}&amp;gt;}Prior_Forecast_Cost_to_Complete),
	if(Cost_Code=12,Sum({&amp;lt;Cost_Code={12}&amp;gt;}Prior_Forecast_Cost_to_Complete),
	Sum({&amp;lt;Cost_Code={8,10,12}&amp;gt;}Prior_Forecast_Cost_to_Complete))))
)
*
(
	If(Cost_Code=8, Sum({&amp;lt;Cost_Code={8}&amp;gt;}POC)/100
	-
	Above(TOTAL Sum({&amp;lt;MonthYear,Year,YearMonth,Cost_Code={8}&amp;gt;}POC)/100, Num(Month)),
	If(Cost_Code=10, Sum({&amp;lt;Cost_Code={10}&amp;gt;}POC)/100
	-
	Above(TOTAL Sum({&amp;lt;MonthYear,Year,YearMonth,Cost_Code={10}&amp;gt;}POC)/100, Num(Month)),
	If(Cost_Code=12, Sum({&amp;lt;Cost_Code={12}&amp;gt;}POC)/100
	-
	Above(TOTAL Sum({&amp;lt;MonthYear,Year,YearMonth,Cost_Code={12}&amp;gt;}POC)/100, Num(Month)),
	Sum({&amp;lt;Cost_Code={8,10,12}&amp;gt;}POC)/300
	-
	Above(TOTAL Sum({&amp;lt;MonthYear,Year,YearMonth,Cost_Code={8,10,12}&amp;gt;}POC)/300, Num(Month)))))	
)
)
- 
Alt(Above(TOTAL
((
	if(Only({&amp;lt;MonthYear, Snapshot_Date&amp;gt;}Cost_Code)=8,Sum({&amp;lt;MonthYear, Snapshot_Date,Cost_Code={8}&amp;gt;}Prior_Updated_OEC_Budget),
	if(Only({&amp;lt;MonthYear, Snapshot_Date&amp;gt;}Cost_Code)=10,Sum({&amp;lt;MonthYear, Snapshot_Date,Cost_Code={10}&amp;gt;}Prior_Updated_OEC_Budget),
	if(Only({&amp;lt;MonthYear, Snapshot_Date&amp;gt;}Cost_Code)=12,Sum({&amp;lt;MonthYear, Snapshot_Date,Cost_Code={12}&amp;gt;}Prior_Updated_OEC_Budget),
	Sum({&amp;lt;MonthYear, Snapshot_Date,Cost_Code={8,10,12}&amp;gt;}Prior_Updated_OEC_Budget))))
	-
	if(Only({&amp;lt;MonthYear, Snapshot_Date&amp;gt;}Cost_Code)=8,Sum({&amp;lt;MonthYear, Snapshot_Date,Cost_Code={8}&amp;gt;}Prior_Forecast_Cost_to_Complete),
	if(Only({&amp;lt;MonthYear, Snapshot_Date&amp;gt;}Cost_Code)=10,Sum({&amp;lt;MonthYear, Snapshot_Date,Cost_Code={10}&amp;gt;}Prior_Forecast_Cost_to_Complete),
	if(Only({&amp;lt;MonthYear, Snapshot_Date&amp;gt;}Cost_Code)=12,Sum({&amp;lt;MonthYear, Snapshot_Date,Cost_Code={12}&amp;gt;}Prior_Forecast_Cost_to_Complete),
	Sum({&amp;lt;MonthYear, Snapshot_Date,Cost_Code={8,10,12}&amp;gt;}Prior_Forecast_Cost_to_Complete))))
)
*
(
	If(Only({&amp;lt;MonthYear, Snapshot_Date&amp;gt;}Cost_Code)=8, Sum({&amp;lt;MonthYear, Snapshot_Date,Cost_Code={8}&amp;gt;}POC)/100
	-
	Above(TOTAL Sum({&amp;lt;MonthYear,Year,Snapshot_Date,YearMonth,Cost_Code={8}&amp;gt;}POC)/100, Num(Month)),
	If(Only({&amp;lt;MonthYear, Snapshot_Date&amp;gt;}Cost_Code)=10, Sum({&amp;lt;MonthYear, Snapshot_Date,Cost_Code={10}&amp;gt;}POC)/100
	-
	Above(TOTAL Sum({&amp;lt;MonthYear,Year,Snapshot_Date,YearMonth,Cost_Code={10}&amp;gt;}POC)/100, Num(Month)),
	If(Only({&amp;lt;MonthYear, Snapshot_Date&amp;gt;}Cost_Code)=12, Sum({&amp;lt;MonthYear, Snapshot_Date,Cost_Code={12}&amp;gt;}POC)/100
	-
	Above(TOTAL Sum({&amp;lt;MonthYear,Year,Snapshot_Date,YearMonth,Cost_Code={12}&amp;gt;}POC)/100, Num(Month)),
	Sum({&amp;lt;MonthYear, Snapshot_Date,Cost_Code={8,10,12}&amp;gt;}POC)/300
	-
	Above(TOTAL Sum({&amp;lt;MonthYear,Year, Snapshot_Date,MonthYear,YearMonth,Cost_Code={8,10,12}&amp;gt;}POC)/300, Num(Month)))))		
))
),0),
(
(
	if(Cost_Code=8,Sum({&amp;lt;Cost_Code={8}&amp;gt;}Prior_Updated_OEC_Budget),
	if(Cost_Code=10,Sum({&amp;lt;Cost_Code={10}&amp;gt;}Prior_Updated_OEC_Budget),
	if(Cost_Code=12,Sum({&amp;lt;Cost_Code={12}&amp;gt;}Prior_Updated_OEC_Budget),
	Sum({&amp;lt;Cost_Code={8,10,12}&amp;gt;}Prior_Updated_OEC_Budget))))
	-
	if(Cost_Code=8,Sum({&amp;lt;Cost_Code={8}&amp;gt;}Prior_Forecast_Cost_to_Complete),
	if(Cost_Code=10,Sum({&amp;lt;Cost_Code={10}&amp;gt;}Prior_Forecast_Cost_to_Complete),
	if(Cost_Code=12,Sum({&amp;lt;Cost_Code={12}&amp;gt;}Prior_Forecast_Cost_to_Complete),
	Sum({&amp;lt;Cost_Code={8,10,12}&amp;gt;}Prior_Forecast_Cost_to_Complete))))
)
*
(
	If(Cost_Code=8, Sum({&amp;lt;Cost_Code={8}&amp;gt;}POC)/100
	-
	Above(TOTAL Sum({&amp;lt;MonthYear,Year,YearMonth,Cost_Code={8}&amp;gt;}POC)/100, Num(Month)),
	If(Cost_Code=10, Sum({&amp;lt;Cost_Code={10}&amp;gt;}POC)/100
	-
	Above(TOTAL Sum({&amp;lt;MonthYear,Year,YearMonth,Cost_Code={10}&amp;gt;}POC)/100, Num(Month)),
	If(Cost_Code=12, Sum({&amp;lt;Cost_Code={12}&amp;gt;}POC)/100
	-
	Above(TOTAL Sum({&amp;lt;MonthYear,Year,YearMonth,Cost_Code={12}&amp;gt;}POC)/100, Num(Month)),
	Sum({&amp;lt;Cost_Code={8,10,12}&amp;gt;}POC)/300
	-
	Above(TOTAL Sum({&amp;lt;MonthYear,Year,YearMonth,Cost_Code={8,10,12}&amp;gt;}POC)/300, Num(Month)))))
)
)
), Project_Number, Year,MonthYear)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Bhavesh&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 04:28:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-is-showing-null-when-selecting-the-Month-field/m-p/1543675#M745192</guid>
      <dc:creator>bhaveshp90</dc:creator>
      <dc:date>2024-11-16T04:28:01Z</dc:date>
    </item>
    <item>
      <title>Re: Expression is showing null when selecting the Month field</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-is-showing-null-when-selecting-the-Month-field/m-p/1543934#M745193</link>
      <description>Wow that was a tough expression to follow when reading the community on a mobile device.&lt;BR /&gt;&lt;BR /&gt;I would recommend you not to identify the/a sub part of your expression that is causing you trouble.&lt;BR /&gt;&lt;BR /&gt;When you've done that you might understand the root cause your self, if not then post this limited sub part to this forum for help.&lt;BR /&gt;&lt;BR /&gt;Good luck!</description>
      <pubDate>Wed, 13 Feb 2019 21:43:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-is-showing-null-when-selecting-the-Month-field/m-p/1543934#M745193</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2019-02-13T21:43:03Z</dc:date>
    </item>
  </channel>
</rss>

