CaptNemo Posted September 5 Report Share Posted September 5 Can someone help me get the sum of the yes responses in my data? I'm using a tabular reports Datapage. Quote Link to comment Share on other sites More sharing options...
0 ianGPT Posted September 5 Report Share Posted September 5 @CaptNemo You can do the following to have an aggregation for yes no field. 1) Insert a Calculated Field and use the following code. Repeat these steps for Tuesday, Wednesday, and Thursday: CASE WHEN [@field:YourYesNofield]=1 THEN 1 ELSE 0 END 2) Insert a Total & Aggregated Field and apply the Sum Function. Then, include the calculated fields you created in the Selected Fields section. Hope this helps! Quote Link to comment Share on other sites More sharing options...
0 CaptNemo Posted September 5 Author Report Share Posted September 5 I've tried that one but its not allowing to be place on 1 aggregate. Can you help me on this one? Quote Link to comment Share on other sites More sharing options...
0 ianGPT Posted September 5 Report Share Posted September 5 @CaptNemo If you are trying to display it in one row you can refer to this post Sample Code: HEADER <style> tr[data-cb-aggregation="Aggregate2"], tr[data-cb-aggregation="Aggregate3"], tr[data-cb-aggregation="Aggregate4"] { display: none; } td.cbResultSetTotalsData{ font-weight: bold !important; } </style> FOOTER <script> document.addEventListener('DataPageReady', moveTotalsToOneRow) function moveTotalsToOneRow() { const totalsSecond = document.querySelector('tr[data-cb-aggregation="Aggregate2"] td:nth-child(2)').innerHTML; const totalsThird= document.querySelector('tr[data-cb-aggregation="Aggregate3"] td:nth-child(2)').innerHTML; const totalsForth= document.querySelector('tr[data-cb-aggregation="Aggregate4"] td:nth-child(2)').innerHTML; document.querySelector('tr[data-cb-aggregation="Aggregate1"] td:nth-child(3)').innerHTML = totalsSecond; document.querySelector('tr[data-cb-aggregation="Aggregate1"] td:nth-child(4)').innerHTML = totalsThird; document.querySelector('tr[data-cb-aggregation="Aggregate1"] td:nth-child(5)').innerHTML = totalsForth; document.removeEventListener('DataPageReady', moveTotalsToOneRow); } </script> CaptNemo 1 Quote Link to comment Share on other sites More sharing options...
Question
CaptNemo
Can someone help me get the sum of the yes responses in my data? I'm using a tabular reports Datapage.
Link to comment
Share on other sites
3 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.