<?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: Dynamic Values of a column in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Values-of-a-column/m-p/3140726#M112134</link>
    <description>&lt;P&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;In point no 4 you have used this Collectors[Gender], but there is no Gender in Collectors.&amp;nbsp;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new, courier"&gt;&lt;STRONG&gt;Collectors aren't connected to distributors table. Clooector only contains Name, Id and address.&amp;nbsp;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 19 Mar 2023 12:52:48 GMT</pubDate>
    <dc:creator>manish_g</dc:creator>
    <dc:date>2023-03-19T12:52:48Z</dc:date>
    <item>
      <title>Dynamic Values of a column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Values-of-a-column/m-p/3139419#M112021</link>
      <description>&lt;P&gt;Hello Community,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; I am facing difficulity with the following scenario&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is a table distributors with c&lt;SPAN&gt;olumns Name, Gender and Amount&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Another table collector, which contains a measure with count of collectors(no of collectors)&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here I need a chart which shows the gender wise breakdown of avg amount per collector&amp;nbsp;&lt;/P&gt;&lt;P&gt;(A bar chart with X- axis -- Gender and Y-axis Avg amount per collector)&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would be thankful for your suggestions.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Mar 2023 16:32:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Values-of-a-column/m-p/3139419#M112021</guid>
      <dc:creator>manish_g</dc:creator>
      <dc:date>2023-03-17T16:32:12Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Values of a column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Values-of-a-column/m-p/3139440#M112027</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="531885" data-lia-user-login="manish_g" class="lia-mention lia-mention-user"&gt;manish_g&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To create the chart that shows the gender-wise breakdown of average amount per collector, I think you could follow these steps:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;First, you need to create a relationship between the Distributors and Collectors table. To do this, go to the "Modeling" tab and click on "Manage Relationships." Then, create a relationship between the "Name" column in the Distributors table and the "Collector" column in the Collectors table.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Next, create a measure to calculate the average amount per collector. You can do this by going to the "Modeling" tab and clicking on "New Measure." Use the following formula:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier" size="2" color="#993300"&gt;Avg Amount per Collector = SUM(Distributors[Amount])/COUNT(Collectors)&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Now, create a new table by going to the "Modeling" tab and clicking on "New Table." In the formula bar, enter the following formula:&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2" color="#993300"&gt;&lt;STRONG&gt;Gender Breakdown = DISTINCT(Distributors[Gender])&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Create another measure to calculate the average amount per collector by gender. Use the following formula:&lt;/P&gt;&lt;P&gt;Avg Amount per Collector by Gender &lt;FONT size="2"&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;= AVERAGEX( FILTER(Distributors, COUNTROWS(FILTER(Collectors, Collectors[Gender] = Distributors[Gender])) &amp;gt; 0), [Avg Amount per Collector])&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;This formula filters the Distributors table to only include those with collectors of the same gender, and then calculates the average amount per collector using the previously created measure.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Finally, create a bar chart by dragging the "Gender" column from the Gender Breakdown table to the X-axis and the "Avg Amount per Collector by Gender" measure to the Y-axis.&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That should give you a chart that shows the gender-wise breakdown of average amount per collector.&lt;/P&gt;&lt;P&gt;Let me know if it works or if you need any additional help.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Best regards,&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://www.linkedin.com/in/isaac-chavarria-artavia-38b982184/" target="_self" rel="nofollow noopener noreferrer"&gt;Isaac Chavarria&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If this post&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;SPAN&gt;, then please consider&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM&gt;Accepting it as the solution&amp;nbsp;and giving Kudos&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;to help the other members find it more quickly&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Mar 2023 16:50:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Values-of-a-column/m-p/3139440#M112027</guid>
      <dc:creator>ichavarria</dc:creator>
      <dc:date>2023-03-17T16:50:40Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Values of a column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Values-of-a-column/m-p/3139461#M112029</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Please provide a sample PBI file which contains your data and data model.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Mar 2023 17:06:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Values-of-a-column/m-p/3139461#M112029</guid>
      <dc:creator>MohammadLoran25</dc:creator>
      <dc:date>2023-03-17T17:06:37Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Values of a column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Values-of-a-column/m-p/3140726#M112134</link>
      <description>&lt;P&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;In point no 4 you have used this Collectors[Gender], but there is no Gender in Collectors.&amp;nbsp;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new, courier"&gt;&lt;STRONG&gt;Collectors aren't connected to distributors table. Clooector only contains Name, Id and address.&amp;nbsp;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 19 Mar 2023 12:52:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Values-of-a-column/m-p/3140726#M112134</guid>
      <dc:creator>manish_g</dc:creator>
      <dc:date>2023-03-19T12:52:48Z</dc:date>
    </item>
  </channel>
</rss>

