<?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>topic Re: ALLSELECTED, but within the same visual in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ALLSELECTED-but-within-the-same-visual/m-p/4385843#M174106</link>
    <description>&lt;P&gt;Ok I see, so it will necessarily be vega-lite code. I will ask for help on vega forums, but if anyone here have a tip, you're welcome.&lt;/P&gt;&lt;P&gt;Just for information, I also tried some vega-lite transforms, such as&amp;nbsp;&lt;EM&gt;joinaggregate&lt;/EM&gt;&lt;SPAN&gt;,&amp;nbsp;but I didn't find any way to concatenate strings in its context.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 29 Jan 2025 09:45:54 GMT</pubDate>
    <dc:creator>Alex_RM</dc:creator>
    <dc:date>2025-01-29T09:45:54Z</dc:date>
    <item>
      <title>ALLSELECTED, but within the same visual</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ALLSELECTED-but-within-the-same-visual/m-p/4384643#M174038</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to perform a string concatenation.&lt;/P&gt;&lt;P&gt;In my report, I have a single Deneb visual (running on vega-lite). Within its dataset, I want to add a column named 'Concatenation' to concatenate all values in 'Value to concatenate', for the selected rows (when I click on them), and appends the result to the dataset, &lt;STRONG&gt;no matter if this row is currently selected or not&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the table in its basic state:&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;EM&gt;Key&lt;/EM&gt;&lt;/TD&gt;&lt;TD&gt;&lt;EM&gt;Value to concatenate&lt;/EM&gt;&lt;/TD&gt;&lt;TD&gt;&lt;EM&gt;Concatenation&lt;/EM&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;a&lt;/TD&gt;&lt;TD&gt;valueA&lt;/TD&gt;&lt;TD&gt;valueA, valueB, valueC&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;b&lt;/TD&gt;&lt;TD&gt;valueB&lt;/TD&gt;&lt;TD&gt;valueA, valueB, valueC&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;c&lt;/TD&gt;&lt;TD&gt;valueC&lt;/TD&gt;&lt;TD&gt;valueA, valueB, valueC&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the expected result when I select some of the rows (here in bold):&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;EM&gt;Key&lt;/EM&gt;&lt;/TD&gt;&lt;TD&gt;&lt;EM&gt;Value&amp;nbsp;to concatenate&lt;/EM&gt;&lt;/TD&gt;&lt;TD&gt;&lt;EM&gt;Concatenation&lt;/EM&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;a&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;valueA&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;valueA, valueC&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;b&lt;/TD&gt;&lt;TD&gt;valueB&lt;/TD&gt;&lt;TD&gt;valueA, valueC&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;c&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;valueC&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;valueA, valueC&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried some DAX formulas with ALLSELECTED, which doesn't seem to work when used within the same visual (but works very well when used on a separated table).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Maybe is there a solution in DAX, or in vega-lite (maybe using &lt;EM&gt;__selected__&lt;/EM&gt;)?&lt;/P&gt;&lt;P&gt;Any help is greatly appreciated!&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jan 2025 15:47:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ALLSELECTED-but-within-the-same-visual/m-p/4384643#M174038</guid>
      <dc:creator>Alex_RM</dc:creator>
      <dc:date>2025-01-28T15:47:46Z</dc:date>
    </item>
    <item>
      <title>Re: ALLSELECTED, but within the same visual</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ALLSELECTED-but-within-the-same-visual/m-p/4384876#M174044</link>
      <description>&lt;P&gt;Your "select"&amp;nbsp; action happens where?&amp;nbsp; In the Deneb visual or somewhere else?&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jan 2025 17:29:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ALLSELECTED-but-within-the-same-visual/m-p/4384876#M174044</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2025-01-28T17:29:13Z</dc:date>
    </item>
    <item>
      <title>Re: ALLSELECTED, but within the same visual</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ALLSELECTED-but-within-the-same-visual/m-p/4384899#M174047</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="100342" data-lia-user-login="lbendlin" class="lia-mention lia-mention-user"&gt;lbendlin&lt;/a&gt;&amp;nbsp;, the select action is performed in the Deneb visual, when clicking on the bars (I presented my example as a table to be more readable, but the Deneb visual is a bar chart).&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jan 2025 17:39:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ALLSELECTED-but-within-the-same-visual/m-p/4384899#M174047</guid>
      <dc:creator>Alex_RM</dc:creator>
      <dc:date>2025-01-28T17:39:32Z</dc:date>
    </item>
    <item>
      <title>Re: ALLSELECTED, but within the same visual</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ALLSELECTED-but-within-the-same-visual/m-p/4384909#M174049</link>
      <description>&lt;P&gt;Then you need to do the computation there too.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jan 2025 17:41:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ALLSELECTED-but-within-the-same-visual/m-p/4384909#M174049</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2025-01-28T17:41:53Z</dc:date>
    </item>
    <item>
      <title>Re: ALLSELECTED, but within the same visual</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ALLSELECTED-but-within-the-same-visual/m-p/4385843#M174106</link>
      <description>&lt;P&gt;Ok I see, so it will necessarily be vega-lite code. I will ask for help on vega forums, but if anyone here have a tip, you're welcome.&lt;/P&gt;&lt;P&gt;Just for information, I also tried some vega-lite transforms, such as&amp;nbsp;&lt;EM&gt;joinaggregate&lt;/EM&gt;&lt;SPAN&gt;,&amp;nbsp;but I didn't find any way to concatenate strings in its context.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jan 2025 09:45:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ALLSELECTED-but-within-the-same-visual/m-p/4385843#M174106</guid>
      <dc:creator>Alex_RM</dc:creator>
      <dc:date>2025-01-29T09:45:54Z</dc:date>
    </item>
    <item>
      <title>Re: ALLSELECTED, but within the same visual</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ALLSELECTED-but-within-the-same-visual/m-p/4402608#M174769</link>
      <description>&lt;P&gt;For anyone having the same problem. I asked the question on stackoverflow, since the problem is more related to vega-lite/Deneb than to PowerBI itself. You can find it here (not answered at this time):&amp;nbsp;&lt;A href="https://stackoverflow.com/questions/79396784/how-to-aggregate-a-text-column" target="_blank"&gt;powerbi - How to aggregate a text column? - Stack Overflow&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Feb 2025 09:23:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ALLSELECTED-but-within-the-same-visual/m-p/4402608#M174769</guid>
      <dc:creator>Alex_RM</dc:creator>
      <dc:date>2025-02-10T09:23:50Z</dc:date>
    </item>
  </channel>
</rss>

