<?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 report builder - using dynamically created columns in expressions in Report Server</title>
    <link>https://community.fabric.microsoft.com/t5/Report-Server/report-builder-using-dynamically-created-columns-in-expressions/m-p/2040927#M20710</link>
    <description>&lt;P&gt;i have a report that has a column group that supplies 2 columns dynamically: cost and sales&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i want to use the results here in other expressions in adjacent columns&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;what is the syntax to provide for (eg. cost / sales) other expressions?&lt;/P&gt;</description>
    <pubDate>Thu, 26 Aug 2021 16:26:55 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-08-26T16:26:55Z</dc:date>
    <item>
      <title>report builder - using dynamically created columns in expressions</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/report-builder-using-dynamically-created-columns-in-expressions/m-p/2040927#M20710</link>
      <description>&lt;P&gt;i have a report that has a column group that supplies 2 columns dynamically: cost and sales&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i want to use the results here in other expressions in adjacent columns&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;what is the syntax to provide for (eg. cost / sales) other expressions?&lt;/P&gt;</description>
      <pubDate>Thu, 26 Aug 2021 16:26:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/report-builder-using-dynamically-created-columns-in-expressions/m-p/2040927#M20710</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-08-26T16:26:55Z</dc:date>
    </item>
    <item>
      <title>Re: report builder - using dynamically created columns in expressions</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/report-builder-using-dynamically-created-columns-in-expressions/m-p/2045269#M20741</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;BR /&gt;
&lt;P&gt;i have a report that has a column group that supplies 2 columns dynamically: cost and sales&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;How do you get this? Any rules? If you could share us a sample, it would be great.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Reference:&amp;nbsp;&lt;A href="https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" target="_blank"&gt;How to Get Your Question Answered Quickly - Microsoft Power BI Community&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Icey&lt;/P&gt;</description>
      <pubDate>Mon, 30 Aug 2021 07:01:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/report-builder-using-dynamically-created-columns-in-expressions/m-p/2045269#M20741</guid>
      <dc:creator>Icey</dc:creator>
      <dc:date>2021-08-30T07:01:55Z</dc:date>
    </item>
    <item>
      <title>Re: report builder - using dynamically created columns in expressions</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/report-builder-using-dynamically-created-columns-in-expressions/m-p/2045985#M20746</link>
      <description>&lt;P&gt;there is a column in the table that is nvar but basically a bit as it displays cost or sales.&amp;nbsp; the column in the report is grouped on that value so it produces 2 columns,&amp;nbsp; 1 for each value&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;problem is i don't know how to then use those columns (which are totaling the cost or sales value for the row) in a further column to dertermine the "margin".&lt;/P&gt;</description>
      <pubDate>Mon, 30 Aug 2021 11:05:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/report-builder-using-dynamically-created-columns-in-expressions/m-p/2045985#M20746</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-08-30T11:05:15Z</dc:date>
    </item>
    <item>
      <title>Re: report builder - using dynamically created columns in expressions</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/report-builder-using-dynamically-created-columns-in-expressions/m-p/2054375#M20778</link>
      <description>&lt;P&gt;it's actually not that bad.&amp;nbsp; add a column, use the scoped sum function (=Sum(Fields!YearlyIncome.Value,"GroupByInitial") where "GroupByInitial" is the name of the target group) and the name of the group and add an if statement to exclude the undesired values(all months except last month)&amp;nbsp; and a group filter to exclude the parameter of the other dynamically provided column "cost".&amp;nbsp; in this case i only wanted to sum if the type = sales.&amp;nbsp; with no "cost" data to return, only the 1 row ("sales") is dynamically provided.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;=Sum(IIF(Fields!GLPeriodBal_FiscalPeriod.Value = Month(Today) - 1,Fields!Calculated_REBalance_Amt.Value , nothing),"Domestic") / Sum(IIF(Fields!GLPeriodBal_FiscalPeriod.Value = Month(Today) - 1, Fields!Calculated_REBalance_Amt.Value, nothing))&lt;/P&gt;</description>
      <pubDate>Thu, 02 Sep 2021 15:09:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/report-builder-using-dynamically-created-columns-in-expressions/m-p/2054375#M20778</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-09-02T15:09:16Z</dc:date>
    </item>
  </channel>
</rss>

