Report Builder not showing aggregated string2019 Community Moderator ElectionHow to concatenate text from multiple rows into a single text string in SQL server?Report Builder 2.0 or Oracle string aggregationReport Parameters in Report Builder 1.0 - Drop-Down Lists Not AppearingSQL Server Report Builder: how to obtain SUM(Value) of each groupSQL Full text search Contains commandFour Wildcards in a Like String ComparisonSSRS: Report Builder: Conditional Formatting in a calculated Text BoxSSRS Report Builder IIF error with aggregateCan we restrict some functionality in SQL Report Builder?SQL Server 2016 Report Builder not showing data
Why would a flight no longer considered airworthy be redirected like this?
How could a scammer know the apps on my phone / iTunes account?
My adviser wants to be the first author
Identifying the interval from A♭ to D♯
Have researchers managed to "reverse time"? If so, what does that mean for physics?
At what level can a dragon innately cast its spells?
PlotLabels with equations not expressions
Science-fiction short story where space navy wanted hospital ships and settlers had guns mounted everywhere
Happy pi day, everyone!
Meaning of "SEVERA INDEOVI VAS" from 3rd Century slab
Does splitting a potentially monolithic application into several smaller ones help prevent bugs?
What are some nice/clever ways to introduce the tonic's dominant seventh chord?
What options are left, if Britain cannot decide?
Theorems like the Lovász Local Lemma?
Replacing Windows 7 security updates with anti-virus?
Dot in front of file
Can hydraulic brake levers get hot when brakes overheat?
What has been your most complicated TikZ drawing?
When do we add an hyphen (-) to a complex adjective word?
Will a pinhole camera work with instant film?
Did CPM support custom hardware using device drivers?
I need to drive a 7/16" nut but am unsure how to use the socket I bought for my screwdriver
Why doesn't the EU now just force the UK to choose between referendum and no-deal?
How to generate globally unique ids for different tables of the same database?
Report Builder not showing aggregated string
2019 Community Moderator ElectionHow to concatenate text from multiple rows into a single text string in SQL server?Report Builder 2.0 or Oracle string aggregationReport Parameters in Report Builder 1.0 - Drop-Down Lists Not AppearingSQL Server Report Builder: how to obtain SUM(Value) of each groupSQL Full text search Contains commandFour Wildcards in a Like String ComparisonSSRS: Report Builder: Conditional Formatting in a calculated Text BoxSSRS Report Builder IIF error with aggregateCan we restrict some functionality in SQL Report Builder?SQL Server 2016 Report Builder not showing data
in Report Builder I have a datasource derived from a SELECT script containing an aggregated string (rows)
something like this:
Select SUBSTRING((SELECT ',' + field1 AS 'data()'
FROM table
where field2 = code
FOR XML PATH('')), 2 , 9999)
the SELECT script correctly returns an array of values as a single field,
however when I try to put it in report builder, I can only insert fields with an aggregate function - for Strings the default is First()
for some reason Report builder treats it as an array, and with the first() function only returns the first value
how can I achieve that it will display the full "text array"?
I could not find another aggregate function for strings which would work
and I have no idea how can I force report builder to treat it as a single field not as a text array
sql sql-server reportbuilder
add a comment |
in Report Builder I have a datasource derived from a SELECT script containing an aggregated string (rows)
something like this:
Select SUBSTRING((SELECT ',' + field1 AS 'data()'
FROM table
where field2 = code
FOR XML PATH('')), 2 , 9999)
the SELECT script correctly returns an array of values as a single field,
however when I try to put it in report builder, I can only insert fields with an aggregate function - for Strings the default is First()
for some reason Report builder treats it as an array, and with the first() function only returns the first value
how can I achieve that it will display the full "text array"?
I could not find another aggregate function for strings which would work
and I have no idea how can I force report builder to treat it as a single field not as a text array
sql sql-server reportbuilder
Sounds like you aren't working at the details level in your dataset, and working at a grouping; impossible difficult to tell without access to the report. Also, I'd suggest using the syntaxSTUFF((SELECT...FOR XML PATH(''),1,1,'')
instead ofSUBSTRING
. TheSTUFF
will remove the first character only, with those parameters. Although it's unlikely you'll have such a long string, it means that it'll work even within strings of length 10,000+.
– Larnu
Mar 7 at 12:54
add a comment |
in Report Builder I have a datasource derived from a SELECT script containing an aggregated string (rows)
something like this:
Select SUBSTRING((SELECT ',' + field1 AS 'data()'
FROM table
where field2 = code
FOR XML PATH('')), 2 , 9999)
the SELECT script correctly returns an array of values as a single field,
however when I try to put it in report builder, I can only insert fields with an aggregate function - for Strings the default is First()
for some reason Report builder treats it as an array, and with the first() function only returns the first value
how can I achieve that it will display the full "text array"?
I could not find another aggregate function for strings which would work
and I have no idea how can I force report builder to treat it as a single field not as a text array
sql sql-server reportbuilder
in Report Builder I have a datasource derived from a SELECT script containing an aggregated string (rows)
something like this:
Select SUBSTRING((SELECT ',' + field1 AS 'data()'
FROM table
where field2 = code
FOR XML PATH('')), 2 , 9999)
the SELECT script correctly returns an array of values as a single field,
however when I try to put it in report builder, I can only insert fields with an aggregate function - for Strings the default is First()
for some reason Report builder treats it as an array, and with the first() function only returns the first value
how can I achieve that it will display the full "text array"?
I could not find another aggregate function for strings which would work
and I have no idea how can I force report builder to treat it as a single field not as a text array
sql sql-server reportbuilder
sql sql-server reportbuilder
edited Mar 7 at 12:35
jarlh
29.7k52138
29.7k52138
asked Mar 7 at 12:34
balint molnarbalint molnar
82
82
Sounds like you aren't working at the details level in your dataset, and working at a grouping; impossible difficult to tell without access to the report. Also, I'd suggest using the syntaxSTUFF((SELECT...FOR XML PATH(''),1,1,'')
instead ofSUBSTRING
. TheSTUFF
will remove the first character only, with those parameters. Although it's unlikely you'll have such a long string, it means that it'll work even within strings of length 10,000+.
– Larnu
Mar 7 at 12:54
add a comment |
Sounds like you aren't working at the details level in your dataset, and working at a grouping; impossible difficult to tell without access to the report. Also, I'd suggest using the syntaxSTUFF((SELECT...FOR XML PATH(''),1,1,'')
instead ofSUBSTRING
. TheSTUFF
will remove the first character only, with those parameters. Although it's unlikely you'll have such a long string, it means that it'll work even within strings of length 10,000+.
– Larnu
Mar 7 at 12:54
Sounds like you aren't working at the details level in your dataset, and working at a grouping; impossible difficult to tell without access to the report. Also, I'd suggest using the syntax
STUFF((SELECT...FOR XML PATH(''),1,1,'')
instead of SUBSTRING
. The STUFF
will remove the first character only, with those parameters. Although it's unlikely you'll have such a long string, it means that it'll work even within strings of length 10,000+.– Larnu
Mar 7 at 12:54
Sounds like you aren't working at the details level in your dataset, and working at a grouping; impossible difficult to tell without access to the report. Also, I'd suggest using the syntax
STUFF((SELECT...FOR XML PATH(''),1,1,'')
instead of SUBSTRING
. The STUFF
will remove the first character only, with those parameters. Although it's unlikely you'll have such a long string, it means that it'll work even within strings of length 10,000+.– Larnu
Mar 7 at 12:54
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55043929%2freport-builder-not-showing-aggregated-string%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55043929%2freport-builder-not-showing-aggregated-string%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Sounds like you aren't working at the details level in your dataset, and working at a grouping; impossible difficult to tell without access to the report. Also, I'd suggest using the syntax
STUFF((SELECT...FOR XML PATH(''),1,1,'')
instead ofSUBSTRING
. TheSTUFF
will remove the first character only, with those parameters. Although it's unlikely you'll have such a long string, it means that it'll work even within strings of length 10,000+.– Larnu
Mar 7 at 12:54