<?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>Question Re: cross tab : suppressing fields in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/cross-tab-suppressing-fields/qaa-p/518327#M101463</link>
    <description>&lt;P&gt;thanks for the reply.&lt;/P&gt;
  &lt;P&gt;this is the SQL query to return -1 if marks value is null. but i am still cant suppress status_name. i m sure i ammissing something here. And is it still ok to use two summarized fields?&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;&lt;BR /&gt;SELECT S2.student_rollno, IsNull(SSJ.marks, -1) as marks,
SSJ.reason_not_present,
S.subject_name, S.subject_id, GT.Grade_id,  
TP.ThPr_name,EP.ETPA_name,SGTJ.maximum_marks,
 SGTJ.pass_marks  ,ExamStatus .Status_name 
FROM Students_Subjects_junction SSJ                                    
JOIN Subjects S ON SSJ.subject_id = S.subject_id                                    
JOIN Students S2 ON SSJ.student_pk = S2.student_pk                                  
JOIN Gradetype GT ON SSJ.grade_id = GT.grade_id                                
JOIN TheoryPractical TP ON TP.ThPr_id = GT.ThPr_id                                    
JOIN EndtermProgressive EP ON EP.ETPA_id = GT.ETPA_id                            
JOIN Subjects_Gradetype_junction SGTJ ON S.subject_id = SGTJ.subject_id AND GT.Grade_id = SGTJ.Grade_id
join ExamStatus  on SSJ .reason_not_present = ExamStatus .Status_id  
   WHERE S2.semester_id = 7 And S2.department_id = 14 And SSJ.year = 2017 and SSJ.student_pk =131  &lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 25 Sep 2017 17:38:04 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2017-09-25T17:38:04Z</dc:date>
    <item>
      <title>cross tab : suppressing fields</title>
      <link>https://community.sap.com/t5/technology-q-a/cross-tab-suppressing-fields/qaq-p/518325</link>
      <description>&lt;P&gt;i have this cross tab as shown below. &lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/72357-1.png" /&gt;&lt;/P&gt;
  &lt;P&gt;And this is what is get when i generate the report.&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/72358-1.png" /&gt;&lt;/P&gt;
  &lt;P&gt;However what i actually need is this:&lt;/P&gt;
  &lt;P&gt;1)show the value of status_name i.e 'Present' or AB' only when the value of marks is null.in other words i want to suppress status_name only if marks is null. I also think my method above is wrong since there are two summarized fields and the summary type for status_name is 'mode'. But that is the closest i could come to getting what i need.&lt;/P&gt;
  &lt;P&gt;2) the total in the right hand side should be calculated only if all the marks values are not null. else it must show a string like 'Compartmental'. In other words if there is a single 'AB' then total must not be calculated and it must show the string.&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/72360-2.png" /&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 24 Sep 2017 18:15:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/cross-tab-suppressing-fields/qaq-p/518325</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2017-09-24T18:15:09Z</dc:date>
    </item>
    <item>
      <title>Re: cross tab : suppressing fields</title>
      <link>https://community.sap.com/t5/technology-q-a/cross-tab-suppressing-fields/qaa-p/518326#M101462</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
  &lt;P&gt;Formulas that evaluate against true 'NULL' values, unfortunately, do not work in a crosstab.&lt;/P&gt;
  &lt;P&gt;The reason the first summary appears 'blank' for 'Multimedia Technologies' is that no record exists. You'd need to fix this part first so that it returns 'some' value. A zero might not be a good idea, however, a negative number should be enough. You should be able to handle this with a Custom SQL query as the report's data source.&lt;/P&gt;
  &lt;P&gt;We can then suppress the 'status' summary using the following formula:&lt;/P&gt;
  &lt;P&gt;&lt;STRONG&gt;GridValueAt(CurrentRowIndex, CurrentColumnIndex, 0) &amp;gt; 0 &lt;/STRONG&gt;&lt;/P&gt;
  &lt;P&gt;For the 'Departmental' text, you'd need to insert a Calculated Member column, however, this can only be done when you fix the first part I mentioned above.&lt;/P&gt;
  &lt;P&gt;&lt;STRONG&gt;-Abhilash&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Sep 2017 08:13:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/cross-tab-suppressing-fields/qaa-p/518326#M101462</guid>
      <dc:creator>abhilash_kumar</dc:creator>
      <dc:date>2017-09-25T08:13:31Z</dc:date>
    </item>
    <item>
      <title>Re: cross tab : suppressing fields</title>
      <link>https://community.sap.com/t5/technology-q-a/cross-tab-suppressing-fields/qaa-p/518327#M101463</link>
      <description>&lt;P&gt;thanks for the reply.&lt;/P&gt;
  &lt;P&gt;this is the SQL query to return -1 if marks value is null. but i am still cant suppress status_name. i m sure i ammissing something here. And is it still ok to use two summarized fields?&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;&lt;BR /&gt;SELECT S2.student_rollno, IsNull(SSJ.marks, -1) as marks,
SSJ.reason_not_present,
S.subject_name, S.subject_id, GT.Grade_id,  
TP.ThPr_name,EP.ETPA_name,SGTJ.maximum_marks,
 SGTJ.pass_marks  ,ExamStatus .Status_name 
FROM Students_Subjects_junction SSJ                                    
JOIN Subjects S ON SSJ.subject_id = S.subject_id                                    
JOIN Students S2 ON SSJ.student_pk = S2.student_pk                                  
JOIN Gradetype GT ON SSJ.grade_id = GT.grade_id                                
JOIN TheoryPractical TP ON TP.ThPr_id = GT.ThPr_id                                    
JOIN EndtermProgressive EP ON EP.ETPA_id = GT.ETPA_id                            
JOIN Subjects_Gradetype_junction SGTJ ON S.subject_id = SGTJ.subject_id AND GT.Grade_id = SGTJ.Grade_id
join ExamStatus  on SSJ .reason_not_present = ExamStatus .Status_id  
   WHERE S2.semester_id = 7 And S2.department_id = 14 And SSJ.year = 2017 and SSJ.student_pk =131  &lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 25 Sep 2017 17:38:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/cross-tab-suppressing-fields/qaa-p/518327#M101463</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2017-09-25T17:38:04Z</dc:date>
    </item>
    <item>
      <title>Re: cross tab : suppressing fields</title>
      <link>https://community.sap.com/t5/technology-q-a/cross-tab-suppressing-fields/qaa-p/518328#M101464</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
  &lt;P&gt;Could you please try this query:&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;SELECT S2.student_rollno, 
IsNull(SSJ.marks, -1) as marks,
SSJ.reason_not_present,
S.subject_name, 
S.subject_id, 
GT.Grade_id,  
TP.ThPr_name,
EP.ETPA_name,
SGTJ.maximum_marks,
SGTJ.pass_marks,
ExamStatus.Status_name 
FROM Students_Subjects_junction SSJ                                    
LEFT JOIN Subjects S ON SSJ.subject_id = S.subject_id                                    
LEFT JOIN Students S2 ON SSJ.student_pk = S2.student_pk                                  
LEFT JOIN Gradetype GT ON SSJ.grade_id = GT.grade_id                                
LEFT JOIN TheoryPractical TP ON TP.ThPr_id = GT.ThPr_id                                    
LEFT JOIN EndtermProgressive EP ON EP.ETPA_id = GT.ETPA_id                            
LEFT JOIN Subjects_Gradetype_junction SGTJ ON S.subject_id = SGTJ.subject_id AND GT.Grade_id = SGTJ.Grade_id
LEFT join ExamStatus  on SSJ .reason_not_present = ExamStatus .Status_id  
WHERE S2.semester_id = 7 And S2.department_id = 14 And SSJ.year = 2017 and SSJ.student_pk =131  &lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;&lt;STRONG&gt;-Abhilash&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Sep 2017 09:41:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/cross-tab-suppressing-fields/qaa-p/518328#M101464</guid>
      <dc:creator>abhilash_kumar</dc:creator>
      <dc:date>2017-09-27T09:41:39Z</dc:date>
    </item>
    <item>
      <title>Re: cross tab : suppressing fields</title>
      <link>https://community.sap.com/t5/technology-q-a/cross-tab-suppressing-fields/qaa-p/518329#M101465</link>
      <description>&lt;P&gt;k this is the result of the your query&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/71721-1.png" /&gt;&lt;/P&gt;
  &lt;P&gt;of course the difference with my query is the inclusion of columns with null reason_not_present values, but i dont think its significant here because those columns were entered before i added reason_not_null column.i still dont get why you gave me this query. &lt;/P&gt;
  &lt;P&gt;this is the result of my query:&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/71723-2.png" /&gt;&lt;/P&gt;
  &lt;P&gt;In my case also i have been able to insert -1 in case marks value is null.&lt;/P&gt;
  &lt;P&gt;My original question still remains. How can i suppress status_name when marks value is more than -1 now since we have -1 in the datatable? Btw, what i am trying to make is a marksheet for student. In the front end if the user enters some value then status is obliviously 'Present' for that particular subject. If user has not entered any marks then AB gets inserted which means that the student is Absent.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Sep 2017 15:28:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/cross-tab-suppressing-fields/qaa-p/518329#M101465</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2017-09-27T15:28:38Z</dc:date>
    </item>
    <item>
      <title>Re: cross tab : suppressing fields</title>
      <link>https://community.sap.com/t5/technology-q-a/cross-tab-suppressing-fields/qaa-p/518330#M101466</link>
      <description>&lt;P&gt;hello? any one there?&lt;/P&gt;</description>
      <pubDate>Fri, 06 Oct 2017 05:39:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/cross-tab-suppressing-fields/qaa-p/518330#M101466</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2017-10-06T05:39:13Z</dc:date>
    </item>
  </channel>
</rss>

