<?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 Data benchmarking query in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Data-benchmarking/m-p/4396500#M59348</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I wasn't sure in which forum to post this but my gut tells me this isn't too straightforward, but then I am a novice.&lt;/P&gt;&lt;P&gt;As a part of my dashboard development, I am able to pull CSV files directly from the UK Dept for Education statistics catalogue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I would like to do is have a line chart that compares England, the South East and my local authority&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Scubadiver007_1-1738764495422.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1234846iAF1B5CE56BCFCEB0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Scubadiver007_1-1738764495422.png" alt="Scubadiver007_1-1738764495422.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but what makes it tricky is how the data is published:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Scubadiver007_0-1738764437189.png" style="width: 565px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1234845i47792B8F0E0D70ED/image-dimensions/565x125?v=v2" width="565" height="125" role="button" title="Scubadiver007_0-1738764437189.png" alt="Scubadiver007_0-1738764437189.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can this be done directly or would I have to import the figures into a new table with three columns for England, SE and LA?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the URL, and there is a URL link at the bottom which allows direct access to the data:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://explore-education-statistics.service.gov.uk/data-catalogue/data-set/48e53a9f-7129-4723-b077-94e8a6b594d0" target="_blank"&gt;https://explore-education-statistics.service.gov.uk/data-catalogue/data-set/48e53a9f-7129-4723-b077-94e8a6b594d0&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 05 Feb 2025 14:13:19 GMT</pubDate>
    <dc:creator>Scubadiver007</dc:creator>
    <dc:date>2025-02-05T14:13:19Z</dc:date>
    <item>
      <title>Data benchmarking</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Data-benchmarking/m-p/4395956#M59342</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I hope I have submitted in the correct forum because I am not sure how straightforward this is&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my role, I deal with data published by the UK Government for benchmarking purposes. I would like to have a line chart comparing England, South East and our own authority. Because of the way the Dept for Education publish data, it is a bit tricky as shown:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Scubadiver007_0-1738744735238.png" style="width: 561px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1234735iAD812C62765B6A64/image-dimensions/561x122?v=v2" width="561" height="122" role="button" title="Scubadiver007_0-1738744735238.png" alt="Scubadiver007_0-1738744735238.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to turn it into something like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Scubadiver007_1-1738744891976.png" style="width: 280px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1234737iE889C44EB92E3F60/image-dimensions/280x171?v=v2" width="280" height="171" role="button" title="Scubadiver007_1-1738744891976.png" alt="Scubadiver007_1-1738744891976.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is a link to an example dataset and, to directly access it in P.BI, just add "/csv" to the end of this URL (which is also on the page):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://explore-education-statistics.service.gov.uk/data-catalogue/data-set/48e53a9f-7129-4723-b077-94e8a6b594d0" target="_blank"&gt;https://explore-education-statistics.service.gov.uk/data-catalogue/data-set/48e53a9f-7129-4723-b077-94e8a6b594d0&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any thoughts on this would be appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2025 08:44:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Data-benchmarking/m-p/4395956#M59342</guid>
      <dc:creator>Scubadiver007</dc:creator>
      <dc:date>2025-02-05T08:44:07Z</dc:date>
    </item>
    <item>
      <title>Data benchmarking query</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Data-benchmarking/m-p/4396500#M59348</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I wasn't sure in which forum to post this but my gut tells me this isn't too straightforward, but then I am a novice.&lt;/P&gt;&lt;P&gt;As a part of my dashboard development, I am able to pull CSV files directly from the UK Dept for Education statistics catalogue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I would like to do is have a line chart that compares England, the South East and my local authority&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Scubadiver007_1-1738764495422.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1234846iAF1B5CE56BCFCEB0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Scubadiver007_1-1738764495422.png" alt="Scubadiver007_1-1738764495422.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but what makes it tricky is how the data is published:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Scubadiver007_0-1738764437189.png" style="width: 565px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1234845i47792B8F0E0D70ED/image-dimensions/565x125?v=v2" width="565" height="125" role="button" title="Scubadiver007_0-1738764437189.png" alt="Scubadiver007_0-1738764437189.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can this be done directly or would I have to import the figures into a new table with three columns for England, SE and LA?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the URL, and there is a URL link at the bottom which allows direct access to the data:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://explore-education-statistics.service.gov.uk/data-catalogue/data-set/48e53a9f-7129-4723-b077-94e8a6b594d0" target="_blank"&gt;https://explore-education-statistics.service.gov.uk/data-catalogue/data-set/48e53a9f-7129-4723-b077-94e8a6b594d0&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2025 14:13:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Data-benchmarking/m-p/4396500#M59348</guid>
      <dc:creator>Scubadiver007</dc:creator>
      <dc:date>2025-02-05T14:13:19Z</dc:date>
    </item>
    <item>
      <title>Re: Data benchmarking query</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Data-benchmarking/m-p/4397099#M59349</link>
      <description>&lt;P&gt;should we be worried about these data quality issues?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="lbendlin_0-1738787848802.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1235019i2F56AAECA242A596/image-size/medium?v=v2&amp;amp;px=400" role="button" title="lbendlin_0-1738787848802.png" alt="lbendlin_0-1738787848802.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;What I would like to do is have a line chart that compares England, the South East and my local authority&lt;/LI-CODE&gt;
&lt;P&gt;That is a design red flag.&amp;nbsp; You are repeating the same data in the same visual.&amp;nbsp; Make sure your users understand that.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="lbendlin_1-1738789590053.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1235022iC777F42C41A91C74/image-size/medium?v=v2&amp;amp;px=400" role="button" title="lbendlin_1-1738789590053.png" alt="lbendlin_1-1738789590053.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2025 21:06:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Data-benchmarking/m-p/4397099#M59349</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2025-02-05T21:06:53Z</dc:date>
    </item>
    <item>
      <title>Re: Data benchmarking query</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Data-benchmarking/m-p/4397816#M59357</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/924178"&gt;@Scubadiver007&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think you can do some transformation in Power Query Editor if you don't need so many data.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;let
    Source = Csv.Document(File.Contents("..."),[Delimiter=",", Columns=23, Encoding=1252, QuoteStyle=QuoteStyle.None]),
    #"Promoted Headers" = Table.PromoteHeaders(Source, [PromoteAllScalars=true]),
    #"Changed Type" = Table.TransformColumnTypes(#"Promoted Headers",{{"time_period", Int64.Type}, {"time_identifier", type text}, {"geographic_level", type text}, {"country_code", type text}, {"country_name", type text}, {"region_code", type text}, {"region_name", type text}, {"old_la_code", type text}, {"new_la_code", type text}, {"la_name", type text}, {"lad_code", type text}, {"lad_name", type text}, {"breakdown_topic", type text}, {"breakdown", type text}, {"sex", type text}, {"children_number", Int64.Type}, {"average_elgs", type number}, {"elg_number", Int64.Type}, {"elg_percentage", type number}, {"comm_lang_lit_number", Int64.Type}, {"comm_lang_lit_percentage", type number}, {"gld_number", Int64.Type}, {"gld_percentage", type number}}),
    #"Filtered Rows" = Table.SelectRows(#"Changed Type", each ([breakdown_topic] = "Total") and ([sex] = "Total") and ([country_name] = "England") and ([region_name] = "" or [region_name] = "South East") and ([la_name] = "" or [la_name] = "Wokingham") and ([geographic_level] &amp;lt;&amp;gt; "Local authority district")),
    #"Sorted Rows" = Table.Sort(#"Filtered Rows",{{"region_name", Order.Ascending}, {"la_name", Order.Ascending}, {"gld_percentage", Order.Ascending}}),
    #"Removed Columns" = Table.RemoveColumns(#"Sorted Rows",{"country_code", "region_code", "old_la_code", "new_la_code", "lad_code", "lad_name", "children_number", "average_elgs", "elg_number", "elg_percentage", "comm_lang_lit_number", "comm_lang_lit_percentage", "gld_number"})
in
    #"Removed Columns"&lt;/LI-CODE&gt;
&lt;P&gt;Copy your data source position and paste it in ... in above code.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vrzhoumsft_0-1738828485482.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1235233i95C2D6D94F3C84DA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vrzhoumsft_0-1738828485482.png" alt="vrzhoumsft_0-1738828485482.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Then create a Legend Table for calculation.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Legend = 
DATATABLE(
    "Legend",STRING,
    "Order",INTEGER,
    {
     {"Wokingham",1},
     {"South East",2},
     {"England",3}
    }
)&lt;/LI-CODE&gt;
&lt;P&gt;Measure:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;MEASURE =
SWITCH (
    SELECTEDVALUE ( Legend[Legend] ),
    "Wokingham",
        CALCULATE (
            SUM ( '1_eyfsp_headline_measures_2022_2024'[gld_percentage] ),
            '1_eyfsp_headline_measures_2022_2024'[la_name] = "Wokingham"
        ),
    "South East",
        CALCULATE (
            SUM ( '1_eyfsp_headline_measures_2022_2024'[gld_percentage] ),
            '1_eyfsp_headline_measures_2022_2024'[region_name] = "South East"
                &amp;amp;&amp;amp; '1_eyfsp_headline_measures_2022_2024'[la_name] = BLANK ()
        ),
    "England",
        CALCULATE (
            SUM ( '1_eyfsp_headline_measures_2022_2024'[gld_percentage] ),
            '1_eyfsp_headline_measures_2022_2024'[country_name] = "England"
                &amp;amp;&amp;amp; '1_eyfsp_headline_measures_2022_2024'[region_name] = BLANK ()
        )
)&lt;/LI-CODE&gt;
&lt;P&gt;Result is as below.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vrzhoumsft_1-1738829772532.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1235250i02D6B83419B4E5CB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vrzhoumsft_1-1738829772532.png" alt="vrzhoumsft_1-1738829772532.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Rico Zhou&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Feb 2025 08:16:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Data-benchmarking/m-p/4397816#M59357</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-02-06T08:16:44Z</dc:date>
    </item>
  </channel>
</rss>

