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

Thal And Out Agency railway station See also References External links Navigation menuOfficial Web Site of Pakistan RailwaysArchivedOfficial Web Site of Pakistan Railwayseeexpanding ite

Understanding generators in Python2019 Community Moderator ElectionGenerator function not working pythonFor loop not executing two timesGenerators - Printing generated valuesWhy can a python generator only be used once?What exactly do generators do?What does the “yield” keyword do?What does “list comprehension” mean? How does it work and how can I use it?sklearn Kfold acces single fold instead of for loopIs a generator the callable? Which is the generator?Apply Border To Range Of Cells Using OpenpyxlCalling an external command in PythonWhat are metaclasses in Python?What is the difference between @staticmethod and @classmethod?Finding the index of an item given a list containing it in PythonDifference between append vs. extend list methods in PythonHow can I safely create a nested directory in Python?Does Python have a ternary conditional operator?Understanding slice notationUnderstanding Python super() with __init__() methodsDoes Python have a string 'contains' substring method?

How can I change the color of pagination dots of UIPageControl?How to change UIPageControl dotsIs there a way to change page indicator dots colorCustomize dot with image of UIPageControl at index 0 of UIPageControlNo visible @interface for 'NSObject<PageControlDelegate>' declares the selector 'pageControlPageDidChange:'How to change the color of pagination dots in UIPageControl with a different color per pagepagecontrol indicator custom image instead of DefaultChanging the colour of UIPageControl dots in MonoTouchpagecontrol selectable page visibility color?Alternative way to load ViewControllers on a UIPageControlHow to set only layer.border-color for UIpage control dots in swiftHow can I develop for iPhone using a Windows development machine?How to change the name of an iOS app?UITableView - change section header coloruipagecontrol indicator(dot)issueCustom UIPageControl dots color not changingchange the interspace between UIPageControl dotsHow to change Status Bar text color in iOSHow can I change image tintColor in iOS and WatchKitUIPageControl dots with larger space in between each dotsHow to change the color of pagination dots in UIPageControl with a different color per page