<?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: How can I add Groups using Formatting model utils to build a formatting settings model? in Custom Visuals Development Discussion</title>
    <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/How-can-I-add-Groups-using-Formatting-model-utils-to-build-a/m-p/3284616#M7670</link>
    <description>&lt;P&gt;There won't be any examples for the formatting model utils, because groups are not part of that libray's API. Currently - as you've observed - if you want full parity with the exposed formatting pane API, you will currently need to build the formatting model using &lt;FONT face="courier new,courier"&gt;getFormattingModel&lt;/FONT&gt;&amp;nbsp;in the base Power BI Visuals API rather than using the additional utilities.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this is not an option for you, I would suggest you&amp;nbsp;&lt;A href="https://github.com/microsoft/powerbi-visuals-utils-formattingmodel/issues" target="_self"&gt;create an issue in the repo&lt;/A&gt;&amp;nbsp;or contact &lt;A href="mailto:pbicvsupport@microsoft.com" target="_blank"&gt;pbicvsupport@microsoft.com&lt;/A&gt; so that the team know you want it as a feature.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;</description>
    <pubDate>Wed, 14 Jun 2023 22:23:31 GMT</pubDate>
    <dc:creator>dm-p</dc:creator>
    <dc:date>2023-06-14T22:23:31Z</dc:date>
    <item>
      <title>How can I add Groups using Formatting model utils to build a formatting settings model?</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/How-can-I-add-Groups-using-Formatting-model-utils-to-build-a/m-p/3050710#M6740</link>
      <description>&lt;P&gt;Hi there!&lt;BR /&gt;&lt;BR /&gt;I use&amp;nbsp;&lt;STRONG&gt;&lt;A href="https://learn.microsoft.com/en-gb/power-bi/developer/visuals/utils-formatting-model#build-formatting-pane-model-using-formattingmodel-utils" target="_self"&gt;Formatting model utils&lt;/A&gt;&lt;/STRONG&gt;&amp;nbsp;to&amp;nbsp;&lt;SPAN&gt;build a formatting settings model to populate the property panes. There are models, cards, and slices.&lt;BR /&gt;&lt;/SPAN&gt;I have relations as &lt;STRONG&gt;"Model -&amp;gt; Cards -&amp;gt; Slices"&lt;/STRONG&gt;. I want to add &lt;STRONG&gt;Groups&lt;/STRONG&gt; and then it should look like &lt;STRONG&gt;"Model -&amp;gt; Cards -&amp;gt; Groups -&amp;gt; Slices"&lt;/STRONG&gt;.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I found some information about the &lt;STRONG&gt;Formatting group &lt;A href="https://learn.microsoft.com/en-gb/power-bi/developer/visuals/format-pane#formatting-model-components" target="_self"&gt;here&lt;/A&gt;&lt;/STRONG&gt;&amp;nbsp;and I found an example of how to generate groups using "&lt;STRONG&gt;getFormattingModal&lt;/STRONG&gt;" &lt;A href="https://learn.microsoft.com/en-gb/power-bi/developer/visuals/format-pane#example-formatting-a-data-card" target="_self"&gt;&lt;STRONG&gt;here&lt;/STRONG&gt;&lt;/A&gt;. Then I should use getFormattingModal for all my formatting settings and I don't want it, because it is not&amp;nbsp;convenient.&lt;BR /&gt;&lt;BR /&gt;So, how can I add groups to the formatting model using "Formatting group" instead of "getFormattingModal"?&lt;BR /&gt;&lt;BR /&gt;I need something like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Taras_0-1675091453374.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/863566i5DFDF535DE8F3849/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Taras_0-1675091453374.png" alt="Taras_0-1675091453374.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jan 2023 15:13:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/How-can-I-add-Groups-using-Formatting-model-utils-to-build-a/m-p/3050710#M6740</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-01-30T15:13:03Z</dc:date>
    </item>
    <item>
      <title>Re: How can I add Groups using Formatting model utils to build a formatting settings model?</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/How-can-I-add-Groups-using-Formatting-model-utils-to-build-a/m-p/3271478#M7643</link>
      <description>I searched everything on google notahing good comes up. We need one with this example... there is one without the FormattingModel utils.... which is useless</description>
      <pubDate>Wed, 07 Jun 2023 00:42:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/How-can-I-add-Groups-using-Formatting-model-utils-to-build-a/m-p/3271478#M7643</guid>
      <dc:creator>xeroiced</dc:creator>
      <dc:date>2023-06-07T00:42:44Z</dc:date>
    </item>
    <item>
      <title>Re: How can I add Groups using Formatting model utils to build a formatting settings model?</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/How-can-I-add-Groups-using-Formatting-model-utils-to-build-a/m-p/3284616#M7670</link>
      <description>&lt;P&gt;There won't be any examples for the formatting model utils, because groups are not part of that libray's API. Currently - as you've observed - if you want full parity with the exposed formatting pane API, you will currently need to build the formatting model using &lt;FONT face="courier new,courier"&gt;getFormattingModel&lt;/FONT&gt;&amp;nbsp;in the base Power BI Visuals API rather than using the additional utilities.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this is not an option for you, I would suggest you&amp;nbsp;&lt;A href="https://github.com/microsoft/powerbi-visuals-utils-formattingmodel/issues" target="_self"&gt;create an issue in the repo&lt;/A&gt;&amp;nbsp;or contact &lt;A href="mailto:pbicvsupport@microsoft.com" target="_blank"&gt;pbicvsupport@microsoft.com&lt;/A&gt; so that the team know you want it as a feature.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jun 2023 22:23:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/How-can-I-add-Groups-using-Formatting-model-utils-to-build-a/m-p/3284616#M7670</guid>
      <dc:creator>dm-p</dc:creator>
      <dc:date>2023-06-14T22:23:31Z</dc:date>
    </item>
    <item>
      <title>Re: How can I add Groups using Formatting model utils to build a formatting settings model?</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/How-can-I-add-Groups-using-Formatting-model-utils-to-build-a/m-p/3879637#M9563</link>
      <description>&lt;P&gt;try as in the example on the&amp;nbsp;&lt;A href="https://learn.microsoft.com/en-us/power-bi/developer/visuals/utils-formatting-model#formatting-settings-group:~:text=in%20capabilities.json-,TypeScript,-Copy" target="_self"&gt;documentation&lt;/A&gt;&amp;nbsp; page (&amp;nbsp;There are some errors but I'll leave you the correct summarized version below)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;import { formattingSettings } from "powerbi-visuals-utils-formattingmodel";
import FormattingSettingsCompositeCard = formattingSettings.CompositeCard;
import FormattingSettingsGroup = formattingSettings.Group;
import FormattingSettingsSlice = formattingSettings.Slice;

// Formatting settings group
class myVisualGroupSettings extends FormattingSettingsGroup {
    // Formatting settings slice
    myAnotherNumericSlice = new formattingSettings.NumUpDown({
        name: "myAnotherNumericSlice",
        displayName: "My Formatting Numeric Slice in group",
        value: 15,
        visible: true,
    });
    slices: Array&amp;lt;FormattingSettingsSlice&amp;gt; = [this.myAnotherNumericSlice];
}

// Formatting settings card
class myVisualCardSettings extends FormattingSettingsCompositeCard {
    name: string = "myVisualCard";
    displayName: string = "My Formatting Card";

    groupSetting = new myVisualGroupSettings(Object())
    groups: Array&amp;lt;FormattingSettingsGroup&amp;gt; = [this.groupSetting]
}

export class VisualFormattingSettingsModel extends FormattingSettingsModel {
    // Create formatting settings model formatting cards
    aCard = new myVisualCardSettings();

    cards = [this.aCard];
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="gdelpuenteCinec_0-1714482229683.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1088953iFB62AF2A56080C73/image-size/medium?v=v2&amp;amp;px=400" role="button" title="gdelpuenteCinec_0-1714482229683.png" alt="gdelpuenteCinec_0-1714482229683.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Apr 2024 13:11:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/How-can-I-add-Groups-using-Formatting-model-utils-to-build-a/m-p/3879637#M9563</guid>
      <dc:creator>gdelpuenteCinec</dc:creator>
      <dc:date>2024-04-30T13:11:15Z</dc:date>
    </item>
  </channel>
</rss>

