<?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 Help with capabilities.json in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Help-with-capabilities-json/m-p/3657895#M49082</link>
    <description>&lt;P&gt;Hey All, thank you for your help in advance!&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I need to have my capabilities.json with the ability to have : One - Categoty data (for Id's) and One More seperated one that will be used to codeToText the id with some meaningfull data to the user for example some link or text...&amp;nbsp;&lt;BR /&gt;&lt;STRONG&gt;In Data Source it looks like below :&amp;nbsp;&lt;/STRONG&gt;&lt;BR /&gt;123123123, Storm, ..... many more rows&lt;/P&gt;&lt;P&gt;9879789789, Rain,&amp;nbsp;..... many more rows&lt;/P&gt;&lt;P&gt;456456456, Snow,&amp;nbsp;..... many more rows&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Elaboration -&lt;/STRONG&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;id's&lt;/STRONG&gt;&amp;nbsp;&lt;STRONG&gt;list&lt;/STRONG&gt;&amp;nbsp;: (awalable to me in the code)&lt;BR /&gt;123123123, 9879789789, 456456456&lt;BR /&gt;&lt;STRONG&gt;codeToText&lt;/STRONG&gt;&amp;nbsp;&lt;STRONG&gt;list&lt;/STRONG&gt;&amp;nbsp;(this what the user will see in the visual table instead of id's):&lt;BR /&gt;Storm, Rain,&amp;nbsp; Snow&lt;BR /&gt;&lt;BR /&gt;I can define 2 deferent named&amp;nbsp; sections of dataRoles&amp;nbsp; but i cannot manage to define the&amp;nbsp;&lt;SPAN&gt;dataViewMappings for both the dataRoles to have&amp;nbsp;dataReductionAlgorithm applied in paralel ... could someone please help ?&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 24 Jan 2024 18:47:11 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-01-24T18:47:11Z</dc:date>
    <item>
      <title>Help with capabilities.json</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Help-with-capabilities-json/m-p/3657895#M49082</link>
      <description>&lt;P&gt;Hey All, thank you for your help in advance!&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I need to have my capabilities.json with the ability to have : One - Categoty data (for Id's) and One More seperated one that will be used to codeToText the id with some meaningfull data to the user for example some link or text...&amp;nbsp;&lt;BR /&gt;&lt;STRONG&gt;In Data Source it looks like below :&amp;nbsp;&lt;/STRONG&gt;&lt;BR /&gt;123123123, Storm, ..... many more rows&lt;/P&gt;&lt;P&gt;9879789789, Rain,&amp;nbsp;..... many more rows&lt;/P&gt;&lt;P&gt;456456456, Snow,&amp;nbsp;..... many more rows&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Elaboration -&lt;/STRONG&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;id's&lt;/STRONG&gt;&amp;nbsp;&lt;STRONG&gt;list&lt;/STRONG&gt;&amp;nbsp;: (awalable to me in the code)&lt;BR /&gt;123123123, 9879789789, 456456456&lt;BR /&gt;&lt;STRONG&gt;codeToText&lt;/STRONG&gt;&amp;nbsp;&lt;STRONG&gt;list&lt;/STRONG&gt;&amp;nbsp;(this what the user will see in the visual table instead of id's):&lt;BR /&gt;Storm, Rain,&amp;nbsp; Snow&lt;BR /&gt;&lt;BR /&gt;I can define 2 deferent named&amp;nbsp; sections of dataRoles&amp;nbsp; but i cannot manage to define the&amp;nbsp;&lt;SPAN&gt;dataViewMappings for both the dataRoles to have&amp;nbsp;dataReductionAlgorithm applied in paralel ... could someone please help ?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jan 2024 18:47:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Help-with-capabilities-json/m-p/3657895#M49082</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-01-24T18:47:11Z</dc:date>
    </item>
    <item>
      <title>Re: Help with capabilities.json</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Help-with-capabilities-json/m-p/3663246#M49183</link>
      <description>&lt;P&gt;@Anonymous&lt;/a&gt;&amp;nbsp;y&lt;SPAN&gt;ou can define two different named sections of dataRoles in your&amp;nbsp;&lt;STRONG&gt;capabilities.json&amp;nbsp;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt;file :&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;"dataRoles": {
    "categoryData": {
        "displayName": "Category Data",
        "kind": "Grouping",
        "description": "Data used for grouping visuals",
        "requiredTypes": [
            "Text",
            "Numeric",
            "DateTime"
        ]
    },
    "codeToText": {
        "displayName": "Code to Text",
        "kind": "Grouping",
        "description": "Data used for mapping codes to text",
        "requiredTypes": [
            "Text",
            "WebUrl"
        ]
    }
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;You can refer to the following resources to learn more about &lt;STRONG&gt;DataViewMappings&lt;/STRONG&gt; and data reduction algorithms&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://github.com/PowerBi-Projects/PowerBI-visuals/blob/master/Capabilities/DataViewMappings.md" target="_blank"&gt;https://github.com/PowerBi-Projects/PowerBI-visuals/blob/master/Capabilities/DataViewMappings.md&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://learn.microsoft.com/en-us/power-bi/developer/visuals/dataview-mappings" target="_blank"&gt;https://learn.microsoft.com/en-us/power-bi/developer/visuals/dataview-mappings&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;Let me know if this works for you.&amp;nbsp;@ me in replies, or I'll lose your thread!!!&amp;nbsp;&amp;nbsp;&lt;STRONG&gt;&lt;BR /&gt;&lt;U&gt;Note:&lt;/U&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;If this post is helpful, please mark it as the&amp;nbsp;&lt;STRONG&gt;solution&lt;/STRONG&gt;&amp;nbsp;to help others find it easily. Also, if my answers contribute to a solution, show your appreciation by giving it a&amp;nbsp;&lt;STRONG&gt;thumbs up&lt;/STRONG&gt;!&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jan 2024 18:38:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Help-with-capabilities-json/m-p/3663246#M49183</guid>
      <dc:creator>DallasBaba</dc:creator>
      <dc:date>2024-01-26T18:38:38Z</dc:date>
    </item>
    <item>
      <title>Re: Help with capabilities.json</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Help-with-capabilities-json/m-p/3663287#M49184</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/446607"&gt;@DallasBaba&lt;/a&gt;&amp;nbsp; , thank you for your response , i tried to you above example but unfortunately it does not pass compilation ... i will look into the links you gave me but im afraid that i will need some kind of a course of how to use the capabilities ....&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jan 2024 19:00:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Help-with-capabilities-json/m-p/3663287#M49184</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-01-26T19:00:21Z</dc:date>
    </item>
    <item>
      <title>Re: Help with capabilities.json</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Help-with-capabilities-json/m-p/3663315#M49186</link>
      <description>&lt;P&gt;@Anonymous&lt;/a&gt;, I'm&amp;nbsp;&lt;SPAN&gt;sorry my example didn’t work for you.&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;You can read more at &lt;A href="https://learn.microsoft.com/en-us/power-bi/developer/visuals/capabilities/?wt.mc_id=studentamb_357518" target="_blank" rel="noopener"&gt;Microsoft Learn.&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Or try to d&lt;/SPAN&gt;efine a Data Roles within&amp;nbsp;&lt;STRONG&gt;capabilities.json&lt;/STRONG&gt;,&amp;nbsp;create two distinct&amp;nbsp;dataRoles&amp;nbsp;sections:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;"dataRoles": [
    {
        "displayName": "Category Data",
        "name": "categoryData",
        "kind": "Grouping"
    },
    {
        "displayName": "Code To Text Mapping",
        "name": "codeToText",
        "kind": "Measure"
    }
]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;Then c&lt;/SPAN&gt;&lt;/SPAN&gt;onfigure Data View Mappings the fields from your data source to the corresponding data roles:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;"dataViewMappings": [
    {
        "categorical": {
            "categories": {
                "for": {
                    "in": "categoryData"
                }
            }
        }
    },
    {
        "measure": {
            "measures": {
                "select": [
                    {
                        "bind": {
                            "to": "codeToText"
                        }
                    }
                ]
            }
        }
    }
]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;Apply Data Reduction Algorithm Within the&amp;nbsp;dataViewMappings&amp;nbsp;sections,&amp;nbsp;specify the&amp;nbsp;dataReductionAlgorithm&amp;nbsp;for each data role&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;"dataViewMappings": [
    {
        /* ... category mapping ... */
        "dataReductionAlgorithm": {
            "top": {
                "count": 100
            }
        }
    },
    {
        /* ... codeToText mapping ... */
        "dataReductionAlgorithm": {
            "top": {
                "count": 50
            }
        }
    }
]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;Ensure your visual's code handles the separate data roles correctly and applies the display and codeToText functionality mappings. Verify that the data types in your data source match the expected types for the data roles.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;if my answers contribute to a solution, show your appreciation by giving it a&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;thumbs up&lt;/STRONG&gt;&lt;SPAN&gt;!&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 10 Feb 2024 22:45:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Help-with-capabilities-json/m-p/3663315#M49186</guid>
      <dc:creator>DallasBaba</dc:creator>
      <dc:date>2024-02-10T22:45:07Z</dc:date>
    </item>
  </channel>
</rss>

