<?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: Building Field Parameters using Tabular Editor 2 in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Building-Field-Parameters-using-Tabular-Editor-2/m-p/3644218#M141107</link>
    <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Please check,&amp;nbsp;&lt;SPAN&gt;you need to first change the Name Inferred in the properties from ‘True’ to ‘False’ for each of the three columns.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 17 Jan 2024 19:16:45 GMT</pubDate>
    <dc:creator>Fowmy</dc:creator>
    <dc:date>2024-01-17T19:16:45Z</dc:date>
    <item>
      <title>Building Field Parameters using Tabular Editor 2</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Building-Field-Parameters-using-Tabular-Editor-2/m-p/3644118#M141103</link>
      <description>&lt;P&gt;Hi all&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to build Field Parameters in Tabular editor 2.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As shown here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://p3adaptive.com/completing-the-set-up-field-parameters-using-tabular-editor/" target="_blank"&gt;https://p3adaptive.com/completing-the-set-up-field-parameters-using-tabular-editor/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Issue is that I don't get any columns when I have added the dax code for the calculated table.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm pretty sure code is correct I've even generated it using desktop and pasted it to be sure.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jan 2024 18:18:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Building-Field-Parameters-using-Tabular-Editor-2/m-p/3644118#M141103</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-01-17T18:18:30Z</dc:date>
    </item>
    <item>
      <title>Re: Building Field Parameters using Tabular Editor 2</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Building-Field-Parameters-using-Tabular-Editor-2/m-p/3644218#M141107</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Please check,&amp;nbsp;&lt;SPAN&gt;you need to first change the Name Inferred in the properties from ‘True’ to ‘False’ for each of the three columns.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jan 2024 19:16:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Building-Field-Parameters-using-Tabular-Editor-2/m-p/3644218#M141107</guid>
      <dc:creator>Fowmy</dc:creator>
      <dc:date>2024-01-17T19:16:45Z</dc:date>
    </item>
    <item>
      <title>Re: Building Field Parameters using Tabular Editor 2</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Building-Field-Parameters-using-Tabular-Editor-2/m-p/3644240#M141108</link>
      <description>&lt;P&gt;Problem is that I don't get any columns to change properties on.&lt;/P&gt;&lt;P&gt;I have the calculated tabel but it dosen't have any columns.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jan 2024 19:26:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Building-Field-Parameters-using-Tabular-Editor-2/m-p/3644240#M141108</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-01-17T19:26:32Z</dc:date>
    </item>
    <item>
      <title>Re: Building Field Parameters using Tabular Editor 2</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Building-Field-Parameters-using-Tabular-Editor-2/m-p/3644264#M141109</link>
      <description>&lt;P&gt;Could Issue be That I use Tabular Editor 2 and not 3?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Or maby a&amp;nbsp;&lt;SPAN&gt;compatibility level issue?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jan 2024 19:56:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Building-Field-Parameters-using-Tabular-Editor-2/m-p/3644264#M141109</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-01-17T19:56:23Z</dc:date>
    </item>
    <item>
      <title>Re: Building Field Parameters using Tabular Editor 2</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Building-Field-Parameters-using-Tabular-Editor-2/m-p/3644306#M141111</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Sharing a dummy Power BI file representing your scenario would be beneficial. You can save the Power BI file on Google Drive or any other cloud storage platform and provide the link here. Kindly ensure that permission is granted to open the file.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jan 2024 20:05:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Building-Field-Parameters-using-Tabular-Editor-2/m-p/3644306#M141111</guid>
      <dc:creator>Fowmy</dc:creator>
      <dc:date>2024-01-17T20:05:44Z</dc:date>
    </item>
    <item>
      <title>Re: Building Field Parameters using Tabular Editor 2</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Building-Field-Parameters-using-Tabular-Editor-2/m-p/3645349#M141146</link>
      <description>&lt;P&gt;Great, this is a link to the .bim that I´ve created from the published semantic model.&lt;BR /&gt;calc table&amp;nbsp; Measures 2 is created using Desktop and workes fine.&lt;BR /&gt;calc table&amp;nbsp; Measures 3 is&amp;nbsp;created using Tabular editor 2 and I´m nor getting any columns.&lt;BR /&gt;Compatability level is 1550&lt;BR /&gt;On diff i find in table properties between measure 2 and measure 3 is that Measure 2 has 1 annotaion and measure 3 has 0. Trid copying this from 2 to 3 but no change&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://drive.google.com/file/d/1YBnDlESD--XwfKwxA6oEMbd9xi_wrJ8Y/view?usp=sharing" target="_blank" rel="noopener"&gt;https://drive.google.com/file/d/1YBnDlESD--XwfKwxA6oEMbd9xi_wrJ8Y/view?usp=sharing&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And .pbix&lt;/P&gt;&lt;P&gt;&lt;A href="https://drive.google.com/file/d/1S0Jybu_Sn-N9C2ArBnQtMUjS4YBqkEmd/view?usp=sharing" target="_blank" rel="noopener"&gt;https://drive.google.com/file/d/1S0Jybu_Sn-N9C2ArBnQtMUjS4YBqkEmd/view?usp=sharing&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jan 2024 10:11:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Building-Field-Parameters-using-Tabular-Editor-2/m-p/3645349#M141146</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-01-18T10:11:55Z</dc:date>
    </item>
    <item>
      <title>Re: Building Field Parameters using Tabular Editor 2</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Building-Field-Parameters-using-Tabular-Editor-2/m-p/3648465#M141308</link>
      <description>&lt;P&gt;Ok, I found a solution for this, don´t know rotsource for issue but now I use this to create Field Parameters in Tabular Editor 2 and deploy them to existing Semantic model i Services.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Pop script below in to script editor select measures or columns to include and hitt run script&lt;/P&gt;&lt;P&gt;And of course big thanks to who ever created the script and shared it, Mark Beedle?&amp;nbsp;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":red_heart:"&gt;❤️&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;// Before running the script, select the measures or columns that you&lt;BR /&gt;// would like to use as field parameters (hold down CTRL to select multiple&lt;BR /&gt;// objects). Also, you may change the name of the field parameter table&lt;BR /&gt;// below. NOTE: If used against Power BI Desktop, you must enable unsupported&lt;BR /&gt;// features under File &amp;gt; Preferences (TE2) or Tools &amp;gt; Preferences (TE3).&lt;BR /&gt;var name = "Parameter";&lt;/P&gt;&lt;P&gt;if(Selected.Columns.Count == 0 &amp;amp;&amp;amp; Selected.Measures.Count == 0) throw new Exception("No columns or measures selected!");&lt;/P&gt;&lt;P&gt;// Construct the DAX for the calculated table based on the current selection:&lt;BR /&gt;var objects = Selected.Columns.Any() ? Selected.Columns.Cast&amp;lt;ITabularTableObject&amp;gt;() : Selected.Measures;&lt;BR /&gt;var dax = "{\n " + string.Join(",\n ", objects.Select((c,i) =&amp;gt; string.Format("(\"{0}\", NAMEOF('{1}'[{0}]), {2})", c.Name, c.Table.Name, i))) + "\n}";&lt;/P&gt;&lt;P&gt;// Add the calculated table to the model:&lt;BR /&gt;var table = Model.AddCalculatedTable(name, dax);&lt;/P&gt;&lt;P&gt;// In TE2 columns are not created automatically from a DAX expression, so&lt;BR /&gt;// we will have to add them manually:&lt;BR /&gt;var te2 = table.Columns.Count == 0;&lt;BR /&gt;var nameColumn = te2 ? table.AddCalculatedTableColumn(name, "[Value1]") : table.Columns["Value1"] as CalculatedTableColumn;&lt;BR /&gt;var fieldColumn = te2 ? table.AddCalculatedTableColumn(name + " Fields", "[Value2]") : table.Columns["Value2"] as CalculatedTableColumn;&lt;BR /&gt;var orderColumn = te2 ? table.AddCalculatedTableColumn(name + " Order", "[Value3]") : table.Columns["Value3"] as CalculatedTableColumn;&lt;/P&gt;&lt;P&gt;if(!te2) {&lt;BR /&gt;// Rename the columns that were added automatically in TE3:&lt;BR /&gt;nameColumn.IsNameInferred = false;&lt;BR /&gt;nameColumn.Name = name;&lt;BR /&gt;fieldColumn.IsNameInferred = false;&lt;BR /&gt;fieldColumn.Name = name + " Fields";&lt;BR /&gt;orderColumn.IsNameInferred = false;&lt;BR /&gt;orderColumn.Name = name + " Order";&lt;BR /&gt;}&lt;BR /&gt;// Set remaining properties for field parameters to work&lt;BR /&gt;// See: &lt;A href="https://twitter.com/markbdi/status/1526558841172893696" target="_blank" rel="noopener"&gt;https://twitter.com/markbdi/status/1526558841172893696&lt;/A&gt;&lt;BR /&gt;nameColumn.SortByColumn = orderColumn;&lt;BR /&gt;nameColumn.GroupByColumns.Add(fieldColumn);&lt;BR /&gt;fieldColumn.SortByColumn = orderColumn;&lt;BR /&gt;fieldColumn.SetExtendedProperty("ParameterMetadata", "{\"version\":3,\"kind\":2}", ExtendedPropertyType.Json);&lt;BR /&gt;fieldColumn.IsHidden = true;&lt;BR /&gt;orderColumn.IsHidden = true;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jan 2024 15:15:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Building-Field-Parameters-using-Tabular-Editor-2/m-p/3648465#M141308</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-01-19T15:15:59Z</dc:date>
    </item>
  </channel>
</rss>

