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










0















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










share|improve this question
























  • 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
















0















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










share|improve this question
























  • 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














0












0








0








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










share|improve this question
















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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








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 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

















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













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
);



);













draft saved

draft discarded


















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















draft saved

draft discarded
















































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.




draft saved


draft discarded














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





















































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







Popular posts from this blog

Can't initialize raids on a new ASUS Prime B360M-A motherboard2019 Community Moderator ElectionSimilar to RAID config yet more like mirroring solution?Can't get motherboard serial numberWhy does the BIOS entry point start with a WBINVD instruction?UEFI performance Asus Maximus V Extreme

Identity Server 4 is not redirecting to Angular app after login2019 Community Moderator ElectionIdentity Server 4 and dockerIdentityserver implicit flow unauthorized_clientIdentityServer Hybrid Flow - Access Token is null after user successful loginIdentity Server to MVC client : Page Redirect After loginLogin with Steam OpenId(oidc-client-js)Identity Server 4+.NET Core 2.0 + IdentityIdentityServer4 post-login redirect not working in Edge browserCall to IdentityServer4 generates System.NullReferenceException: Object reference not set to an instance of an objectIdentityServer4 without HTTPS not workingHow to get Authorization code from identity server without login form

2005 Ahvaz unrest Contents Background Causes Casualties Aftermath See also References Navigation menue"At Least 10 Are Killed by Bombs in Iran""Iran"Archived"Arab-Iranians in Iran to make April 15 'Day of Fury'"State of Mind, State of Order: Reactions to Ethnic Unrest in the Islamic Republic of Iran.10.1111/j.1754-9469.2008.00028.x"Iran hangs Arab separatists"Iran Overview from ArchivedConstitution of the Islamic Republic of Iran"Tehran puzzled by forged 'riots' letter""Iran and its minorities: Down in the second class""Iran: Handling Of Ahvaz Unrest Could End With Televised Confessions""Bombings Rock Iran Ahead of Election""Five die in Iran ethnic clashes""Iran: Need for restraint as anniversary of unrest in Khuzestan approaches"Archived"Iranian Sunni protesters killed in clashes with security forces"Archived