<?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: On selection of a product from a product vs sales bar chart, I want to see top 3 user comments about in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/On-selection-of-a-product-from-a-product-vs-sales-bar-chart-I/m-p/3992668#M155628</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="759283" data-lia-user-login="daechir7" class="lia-mention lia-mention-user"&gt;daechir7&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;I think &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="164152" data-lia-user-login="Uzi2019" class="lia-mention lia-mention-user"&gt;Uzi2019&lt;/a&gt;&amp;nbsp;'s reply is helpful. In the meantime, I am here to talk about my thinking.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Maybe you can use Card visual to achieve your goals, I created a sample data for you:&lt;/P&gt;
&lt;P&gt;Sample data:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;1.Add new measures.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Description =
IF (
    ISFILTERED ( 'Table'[Product Name] ),
    SELECTEDVALUE ( 'Table'[Product Description] ),
    "Please selected Product Name"
)
&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;samlpe comments = 
VAR _rank =
    RANKX (
        FILTER (
            ALL ( 'Table' ),
            'Table'[Product Name] = SELECTEDVALUE ( 'Table'[Product Name] )
        ),
        CALCULATE ( MAX ( 'Table'[SL.No] ) ),
        ,
        DESC
    )
RETURN
    IF (
        ISFILTERED ( 'Table'[Product Name] ),
        CALCULATE (
            CONCATENATEX ( 'Table', 'Table'[User Feedback], " / " ),
            FILTER ( 'Table', _rank &amp;lt;= 3 )
        ),
        "Please selected Product Name"
    )
&lt;/LI-CODE&gt;
&lt;P&gt;2.Put two measures in the card.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;Final output:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.fabric.microsoft.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" target="_blank" rel="noopener"&gt;How to Get Your Question Answered Quickly - Microsoft Fabric Community&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;If it does not help, please provide more details with your desired out put and pbix file without privacy information.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Ada Wang&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;/EM&gt;, then please consider&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp;Accept it as the solution&amp;nbsp;&lt;/STRONG&gt;&lt;/EM&gt;to help the other members find it more quickly.&lt;/P&gt;</description>
    <pubDate>Fri, 14 Jun 2024 06:44:22 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-06-14T06:44:22Z</dc:date>
    <item>
      <title>On selection of a product from a product vs sales bar chart, I want to see top 3 user comments about</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/On-selection-of-a-product-from-a-product-vs-sales-bar-chart-I/m-p/3990807#M155623</link>
      <description>&lt;P&gt;Let's say my dataset has few columns - Product, Sales &amp;amp; User Comments etc&lt;/P&gt;&lt;P&gt;I have created a bar chart product vs sales.&lt;/P&gt;&lt;P&gt;Now, if I select any bar, I should be able to see random sample comments about that product in a separate box.&lt;/P&gt;&lt;P&gt;Pretty new to powerbi, have searched for some time, unable to find any solution. Thanks in advance &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://i.sstatic.net/IYFO19jW.png" rel="nofollow noreferrer" target="_blank"&gt;Dataset example&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://i.sstatic.net/KeR5AzGy.png" rel="nofollow noreferrer" target="_blank"&gt;Expected Output&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jun 2024 10:02:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/On-selection-of-a-product-from-a-product-vs-sales-bar-chart-I/m-p/3990807#M155623</guid>
      <dc:creator>daechir7</dc:creator>
      <dc:date>2024-06-13T10:02:35Z</dc:date>
    </item>
    <item>
      <title>Re: On selection of a product from a product vs sales bar chart, I want to see top 3 user comments about</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/On-selection-of-a-product-from-a-product-vs-sales-bar-chart-I/m-p/3990833#M155624</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="759283" data-lia-user-login="daechir7" class="lia-mention lia-mention-user"&gt;daechir7&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can use tooltip feature on product vs sales chart. follow these video for better understnding.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.youtube.com/watch?v=k0cwSYNXhkI" target="_blank" rel="nofollow noopener noreferrer"&gt;https://www.youtube.com/watch?v=k0cwSYNXhkI&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.youtube.com/watch?v=a5HlBrBygVE" target="_blank" rel="nofollow noopener noreferrer"&gt;https://www.youtube.com/watch?v=a5HlBrBygVE&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.youtube.com/watch?v=rxtuYqMZsZg" target="_blank" rel="nofollow noopener noreferrer"&gt;https://www.youtube.com/watch?v=rxtuYqMZsZg&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this may help to set tooltip with top 3 comments by sales.&lt;/P&gt;
&lt;P&gt;add table in your tooltip page and comments and other fileds you want&lt;/P&gt;
&lt;P&gt;just use visual filter &amp;gt; top n &amp;gt;3 &amp;gt; put values &amp;gt; sales&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope i answered your question!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jun 2024 10:15:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/On-selection-of-a-product-from-a-product-vs-sales-bar-chart-I/m-p/3990833#M155624</guid>
      <dc:creator>Uzi2019</dc:creator>
      <dc:date>2024-06-13T10:15:43Z</dc:date>
    </item>
    <item>
      <title>Re: On selection of a product from a product vs sales bar chart, I want to see top 3 user comments about</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/On-selection-of-a-product-from-a-product-vs-sales-bar-chart-I/m-p/3991293#M155625</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="164152" data-lia-user-login="Uzi2019" class="lia-mention lia-mention-user"&gt;Uzi2019&lt;/a&gt;&amp;nbsp;, thanks for your response. However, I am specifically looking to show up the comments in a text box instead of the tooltip. The Default text must say as it is in the output boxes and should show the description in one box and comments in the other box when a bar is selected.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;But if I don't find a solution to my expectation, then I will utilize the one you have shared. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jun 2024 13:58:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/On-selection-of-a-product-from-a-product-vs-sales-bar-chart-I/m-p/3991293#M155625</guid>
      <dc:creator>daechir7</dc:creator>
      <dc:date>2024-06-13T13:58:14Z</dc:date>
    </item>
    <item>
      <title>Re: On selection of a product from a product vs sales bar chart, I want to see top 3 user comments about</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/On-selection-of-a-product-from-a-product-vs-sales-bar-chart-I/m-p/3991324#M155626</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="759283" data-lia-user-login="daechir7" class="lia-mention lia-mention-user"&gt;daechir7&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can add simple table add comments and seperate table add description. when you select somthing on chart it auto filters the tables values( comments and description).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;other wise there is nothing much I can suggest..&amp;nbsp;&lt;BR /&gt;tooltip is actually a good feature that you can utilized.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope i answered your query.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jun 2024 14:06:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/On-selection-of-a-product-from-a-product-vs-sales-bar-chart-I/m-p/3991324#M155626</guid>
      <dc:creator>Uzi2019</dc:creator>
      <dc:date>2024-06-13T14:06:32Z</dc:date>
    </item>
    <item>
      <title>Re: On selection of a product from a product vs sales bar chart, I want to see top 3 user comments about</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/On-selection-of-a-product-from-a-product-vs-sales-bar-chart-I/m-p/3992448#M155627</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="164152" data-lia-user-login="Uzi2019" class="lia-mention lia-mention-user"&gt;Uzi2019&lt;/a&gt;&amp;nbsp;for another great alternative. I'd still keep it open and see if the exact thing could be done. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2024 05:04:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/On-selection-of-a-product-from-a-product-vs-sales-bar-chart-I/m-p/3992448#M155627</guid>
      <dc:creator>daechir7</dc:creator>
      <dc:date>2024-06-14T05:04:47Z</dc:date>
    </item>
    <item>
      <title>Re: On selection of a product from a product vs sales bar chart, I want to see top 3 user comments about</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/On-selection-of-a-product-from-a-product-vs-sales-bar-chart-I/m-p/3992668#M155628</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="759283" data-lia-user-login="daechir7" class="lia-mention lia-mention-user"&gt;daechir7&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;I think &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="164152" data-lia-user-login="Uzi2019" class="lia-mention lia-mention-user"&gt;Uzi2019&lt;/a&gt;&amp;nbsp;'s reply is helpful. In the meantime, I am here to talk about my thinking.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Maybe you can use Card visual to achieve your goals, I created a sample data for you:&lt;/P&gt;
&lt;P&gt;Sample data:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;1.Add new measures.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Description =
IF (
    ISFILTERED ( 'Table'[Product Name] ),
    SELECTEDVALUE ( 'Table'[Product Description] ),
    "Please selected Product Name"
)
&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;samlpe comments = 
VAR _rank =
    RANKX (
        FILTER (
            ALL ( 'Table' ),
            'Table'[Product Name] = SELECTEDVALUE ( 'Table'[Product Name] )
        ),
        CALCULATE ( MAX ( 'Table'[SL.No] ) ),
        ,
        DESC
    )
RETURN
    IF (
        ISFILTERED ( 'Table'[Product Name] ),
        CALCULATE (
            CONCATENATEX ( 'Table', 'Table'[User Feedback], " / " ),
            FILTER ( 'Table', _rank &amp;lt;= 3 )
        ),
        "Please selected Product Name"
    )
&lt;/LI-CODE&gt;
&lt;P&gt;2.Put two measures in the card.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;Final output:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.fabric.microsoft.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" target="_blank" rel="noopener"&gt;How to Get Your Question Answered Quickly - Microsoft Fabric Community&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;If it does not help, please provide more details with your desired out put and pbix file without privacy information.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Ada Wang&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;/EM&gt;, then please consider&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp;Accept it as the solution&amp;nbsp;&lt;/STRONG&gt;&lt;/EM&gt;to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2024 06:44:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/On-selection-of-a-product-from-a-product-vs-sales-bar-chart-I/m-p/3992668#M155628</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-06-14T06:44:22Z</dc:date>
    </item>
    <item>
      <title>Re: On selection of a product from a product vs sales bar chart, I want to see top 3 user comments about</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/On-selection-of-a-product-from-a-product-vs-sales-bar-chart-I/m-p/3995620#M155629</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;, This is pretty close and exactly how I needed this, there's a slight change in the dataset now &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&amp;nbsp;&lt;SPAN&gt;I would need at least 3 comments to show up which are in a single row, separated by a pipe '|' Adding an updated screenshot -&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://ibb.co/ctxHkbX" rel="nofollow noreferrer" target="_blank"&gt;ibb.co/ctxHkbX&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;So, if i select the product, it must show the first 3 comments separated by pipe. Sorry, the data I am working with, the layout got changed &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;So, store column isn't there anymore. One row for one product and comments are separated by pipe '|'. First 3 comments will work.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I truly appreciate your help and apolgies for the inconvenience.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jun 2024 08:28:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/On-selection-of-a-product-from-a-product-vs-sales-bar-chart-I/m-p/3995620#M155629</guid>
      <dc:creator>daechir7</dc:creator>
      <dc:date>2024-06-17T08:28:13Z</dc:date>
    </item>
    <item>
      <title>Re: On selection of a product from a product vs sales bar chart, I want to see top 3 user comments about</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/On-selection-of-a-product-from-a-product-vs-sales-bar-chart-I/m-p/3997220#M155630</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="759283" data-lia-user-login="daechir7" class="lia-mention lia-mention-user"&gt;daechir7&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;sample data:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can modify your measure:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;top3 comments = 
VAR _userfeedback = SELECTEDVALUE( 'Table'[User Feedback] )
VAR _rank =
    RANKX (
        FILTER (
            ALL ( 'Table' ),
            'Table'[Product Name] = SELECTEDVALUE ( 'Table'[Product Name] )
        ),
        CALCULATE ( MAX ( 'Table'[SL.No] ) ),
        ,
        ASC
    )
VAR _top3 = IF(_rank&amp;lt;=3,_userfeedback,BLANK())
RETURN
_top3&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;sample comments = 
    IF (
        ISFILTERED ( 'Table'[Product Name] ),
        CONCATENATEX ( 'Table', [top3 comments], " | " )
        ,
        "Please selected Product Name")&lt;/LI-CODE&gt;
&lt;P&gt;Final output:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.fabric.microsoft.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" target="_blank" rel="noopener"&gt;How to Get Your Question Answered Quickly - Microsoft Fabric Community&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;If it does not help, please provide more details with your desired out put and pbix file without privacy information.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Ada Wang&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;/EM&gt;, then please consider&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp;Accept it as the solution&amp;nbsp;&lt;/STRONG&gt;&lt;/EM&gt;to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jun 2024 02:31:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/On-selection-of-a-product-from-a-product-vs-sales-bar-chart-I/m-p/3997220#M155630</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-06-18T02:31:30Z</dc:date>
    </item>
    <item>
      <title>Re: On selection of a product from a product vs sales bar chart, I want to see top 3 user comments about</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/On-selection-of-a-product-from-a-product-vs-sales-bar-chart-I/m-p/3997534#M155631</link>
      <description>&lt;P&gt;This works perfectly, thank you so much &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jun 2024 06:12:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/On-selection-of-a-product-from-a-product-vs-sales-bar-chart-I/m-p/3997534#M155631</guid>
      <dc:creator>daechir</dc:creator>
      <dc:date>2024-06-18T06:12:14Z</dc:date>
    </item>
  </channel>
</rss>

