<?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: adding columns whose values are also based on scaling values in different table in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/adding-columns-whose-values-are-also-based-on-scaling-values-in/m-p/3661090#M141871</link>
    <description>&lt;P&gt;Hi, thanks but getting this error. Seems a "ciclic error during evaluation"&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&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;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 25 Jan 2024 17:33:37 GMT</pubDate>
    <dc:creator>alex779</dc:creator>
    <dc:date>2024-01-25T17:33:37Z</dc:date>
    <item>
      <title>adding columns whose values are also based on scaling values in different table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/adding-columns-whose-values-are-also-based-on-scaling-values-in/m-p/3657696#M141721</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hello there!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Have 2 tables (PVprod and StrutturaCER). I need to&amp;nbsp;&lt;/SPAN&gt;add new columns named "Pn" (n=1,2,...) to first table PVprod.&lt;BR /&gt;Pn = reference column IRR * a scaling coefficient PVnew[n] taken from column PVnew of the second table "StrutturaCER",&amp;nbsp;where n is the row index of PVnew (see pics below)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Is this at all possible in P.Bi ?&lt;/P&gt;&lt;P&gt;I'd like to get as many new colums added to table PVprod for all values of PVnew (including zero values).&lt;BR /&gt;&lt;BR /&gt;Any idea / suggestion&amp;nbsp; in DAX?&lt;/P&gt;&lt;P&gt;Thanks a lot, Alex&lt;BR /&gt;&lt;BR /&gt;&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;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jan 2024 21:47:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/adding-columns-whose-values-are-also-based-on-scaling-values-in/m-p/3657696#M141721</guid>
      <dc:creator>alex779</dc:creator>
      <dc:date>2024-01-24T21:47:30Z</dc:date>
    </item>
    <item>
      <title>Re: adding columns whose values are also based on scaling values in different table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/adding-columns-whose-values-are-also-based-on-scaling-values-in/m-p/3659137#M141789</link>
      <description>&lt;P&gt;Hi, &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="583091" data-lia-user-login="alex779" class="lia-mention lia-mention-user"&gt;alex779&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Based on the information you have provided, I created two tables, Table1 and Table2.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;BR /&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Then New Column, multiply ScalingFactor of Table2 and Value1 of Table1 to get a new column.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Column = 
     Table1[Value1] * RELATED(Table2[ScalingFactor])&lt;/LI-CODE&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;This enables calculations across tables, so if you want to do more with your table, provide me with more data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcommunity.powerbi.com%2Ft5%2FCommunity-Blog%2FHow-to-Get-Your-Question-Answered-Quickly%2Fba-p%2F38490&amp;amp;data=05%7C02%7Cv-yilongzhou%40microsoft.com%7C5dd63d9e039f4c37a6d308dc1d73ff20%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C638417631242375657%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&amp;amp;sdata=oPgU%2B2Mc1dpSsbngYyzgqEop8DIXS5TBJjxvSOdtELs%3D&amp;amp;reserved=0" target="_blank"&gt;How to Get Your Question Answered Quickly&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;
&lt;P&gt;Yilong Zhou&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jan 2024 07:11:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/adding-columns-whose-values-are-also-based-on-scaling-values-in/m-p/3659137#M141789</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-01-25T07:11:18Z</dc:date>
    </item>
    <item>
      <title>Re: adding columns whose values are also based on scaling values in different table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/adding-columns-whose-values-are-also-based-on-scaling-values-in/m-p/3659395#M141799</link>
      <description>&lt;P&gt;M Code&lt;/P&gt;
&lt;P&gt;=Table.FromRecords(Table.TransformRows(PVprod,each Record.TransformFields(_,List.Transform(List.Position(StrutturaCER[PVnew]),(r)=&amp;gt;{"P"&amp;amp;Text.From(r),(x)=&amp;gt;[IRR]*StrutturaCER[PVnew]{r}}),2)))&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jan 2024 08:44:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/adding-columns-whose-values-are-also-based-on-scaling-values-in/m-p/3659395#M141799</guid>
      <dc:creator>wdx223_Daniel</dc:creator>
      <dc:date>2024-01-25T08:44:08Z</dc:date>
    </item>
    <item>
      <title>Re: adding columns whose values are also based on scaling values in different table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/adding-columns-whose-values-are-also-based-on-scaling-values-in/m-p/3659933#M141813</link>
      <description>&lt;P&gt;THanks a lot both guys. Would like to attach my pbix example file but HOW????&amp;nbsp;&lt;BR /&gt;I drag the pbix here but got "&lt;SPAN&gt;file type (.pbix) is not supported." Cannot find the icon to attach file anywhere.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jan 2024 10:44:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/adding-columns-whose-values-are-also-based-on-scaling-values-in/m-p/3659933#M141813</guid>
      <dc:creator>alex779</dc:creator>
      <dc:date>2024-01-25T10:44:29Z</dc:date>
    </item>
    <item>
      <title>Re: adding columns whose values are also based on scaling values in different table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/adding-columns-whose-values-are-also-based-on-scaling-values-in/m-p/3660077#M141817</link>
      <description>&lt;P&gt;thank you but my tables are NOT of the same size.. So it does not work for me.&lt;BR /&gt;My Table1 is like 9000 rows and Table2 (scalingfactors) only 10 rows. I had to rescale each of the 9000 cells IRR in a new column with scaling factors taken from Table2, and add as many columns as the 10 scaling factors..&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jan 2024 11:12:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/adding-columns-whose-values-are-also-based-on-scaling-values-in/m-p/3660077#M141817</guid>
      <dc:creator>alex779</dc:creator>
      <dc:date>2024-01-25T11:12:54Z</dc:date>
    </item>
    <item>
      <title>Re: adding columns whose values are also based on scaling values in different table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/adding-columns-whose-values-are-also-based-on-scaling-values-in/m-p/3661090#M141871</link>
      <description>&lt;P&gt;Hi, thanks but getting this error. Seems a "ciclic error during evaluation"&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&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;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jan 2024 17:33:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/adding-columns-whose-values-are-also-based-on-scaling-values-in/m-p/3661090#M141871</guid>
      <dc:creator>alex779</dc:creator>
      <dc:date>2024-01-25T17:33:37Z</dc:date>
    </item>
    <item>
      <title>Re: adding columns whose values are also based on scaling values in different table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/adding-columns-whose-values-are-also-based-on-scaling-values-in/m-p/3661960#M141904</link>
      <description>&lt;P&gt;it's not a formula in Custom Column&lt;/P&gt;
&lt;P&gt;it's a whole step code, try to delete Table.AddColumn outside&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jan 2024 04:22:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/adding-columns-whose-values-are-also-based-on-scaling-values-in/m-p/3661960#M141904</guid>
      <dc:creator>wdx223_Daniel</dc:creator>
      <dc:date>2024-01-26T04:22:01Z</dc:date>
    </item>
  </channel>
</rss>

