<?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: Looking for a different method to display Percentage viewers retained per Second in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Looking-for-a-different-method-to-display-Percentage-viewers/m-p/2026215#M45293</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="320910" data-lia-user-login="dillennwin" class="lia-mention lia-mention-user"&gt;dillennwin&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can directly change your avg column to percentage column from the top ribbon.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;or you can create a column with below code:-&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Column = 
var _avg = DIVIDE(('Avg'[Video 1]+'Avg'[Video 2]+'Avg'[Video 3]),3)
return FORMAT(_avg,"0.00%")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Samarth&lt;/P&gt;</description>
    <pubDate>Thu, 19 Aug 2021 13:36:56 GMT</pubDate>
    <dc:creator>Samarth_18</dc:creator>
    <dc:date>2021-08-19T13:36:56Z</dc:date>
    <item>
      <title>Looking for a different method to display Percentage viewers retained per Second</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Looking-for-a-different-method-to-display-Percentage-viewers/m-p/2026126#M45290</link>
      <description>&lt;P&gt;For a social media report, I have a visual showing the average percentage viewers retained per second concerning video posts.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;Seconds Video 1 Video 2 Video 3 Average Percentage Retained&lt;/P&gt;&lt;P&gt;&amp;nbsp; 0&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.95&amp;nbsp; &amp;nbsp; &amp;nbsp;0.95&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.95&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.95&lt;/P&gt;&lt;P&gt;&amp;nbsp; 1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.90&amp;nbsp; &amp;nbsp; &amp;nbsp;0.93&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.87&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.91&lt;/P&gt;&lt;P&gt;&amp;nbsp; 2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.85&amp;nbsp; &amp;nbsp; &amp;nbsp;0.90&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.80&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.85&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The decimals basically mean that 90%, of the viewers watched 1 second of video 1. I created a calculated column called average percentage retained using the formula: (&lt;SPAN&gt;Average Percentage Video watched per Second = ([Video 1] + [Video 2] + [Video 3])/3).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Since I have to keep changing this every time I make a new video post, I'm looking for some alternatives that work without having to do this.&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Thu, 19 Aug 2021 13:01:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Looking-for-a-different-method-to-display-Percentage-viewers/m-p/2026126#M45290</guid>
      <dc:creator>dillennwin</dc:creator>
      <dc:date>2021-08-19T13:01:59Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for a different method to display Percentage viewers retained per Second</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Looking-for-a-different-method-to-display-Percentage-viewers/m-p/2026215#M45293</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="320910" data-lia-user-login="dillennwin" class="lia-mention lia-mention-user"&gt;dillennwin&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can directly change your avg column to percentage column from the top ribbon.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;or you can create a column with below code:-&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Column = 
var _avg = DIVIDE(('Avg'[Video 1]+'Avg'[Video 2]+'Avg'[Video 3]),3)
return FORMAT(_avg,"0.00%")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Samarth&lt;/P&gt;</description>
      <pubDate>Thu, 19 Aug 2021 13:36:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Looking-for-a-different-method-to-display-Percentage-viewers/m-p/2026215#M45293</guid>
      <dc:creator>Samarth_18</dc:creator>
      <dc:date>2021-08-19T13:36:56Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for a different method to display Percentage viewers retained per Second</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Looking-for-a-different-method-to-display-Percentage-viewers/m-p/2026349#M45316</link>
      <description>&lt;P&gt;Hello Samarth,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your answering my question. However, I have to apologize since I didn't explain it clearly enough.&lt;/P&gt;&lt;P&gt;It's about the formula:&amp;nbsp;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Average Percentage Video watched per Second = ([Video 1] + [Video 2] + [Video 3])/3).&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If I add another video, this means I would have to manually change the formula to (Average Percentage Video watched per Second = ([Video 1] + [Video 2] + [Video 3]+[Video 4])/4).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is rather tiresome so I was wondering if it was possible to have it done automatically with a correct formula?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Aug 2021 14:32:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Looking-for-a-different-method-to-display-Percentage-viewers/m-p/2026349#M45316</guid>
      <dc:creator>dillennwin</dc:creator>
      <dc:date>2021-08-19T14:32:20Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for a different method to display Percentage viewers retained per Second</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Looking-for-a-different-method-to-display-Percentage-viewers/m-p/2026392#M45320</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="320910" data-lia-user-login="dillennwin" class="lia-mention lia-mention-user"&gt;dillennwin&lt;/a&gt;&amp;nbsp;Ok got it. You can add a custom column in Power Query with below code. It will take avg of all the column which contains "Video" in name:-&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;(row)=&amp;gt; List.Average(Record.FieldValues(Record.SelectFields(row, List.Select(Table.ColumnNames(#"Changed Type"), each Text.Contains(_,"Video")))))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Ouput:-&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Now click on Close &amp;amp; Apply and change newly created column as percentage type.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Aug 2021 14:51:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Looking-for-a-different-method-to-display-Percentage-viewers/m-p/2026392#M45320</guid>
      <dc:creator>Samarth_18</dc:creator>
      <dc:date>2021-08-19T14:51:06Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for a different method to display Percentage viewers retained per Second</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Looking-for-a-different-method-to-display-Percentage-viewers/m-p/2031735#M45561</link>
      <description>&lt;P&gt;This is indeed what I'm looking for, thank you very much. However, this is the output that I'm getting:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;This is what I used:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt; each (row)=&amp;gt; List.Average(Record.FieldValues(Record.SelectFields(row, List.Select(Table.ColumnNames(#"FB Percentage of Views per second"), each Text.Contains(_,"Video"))))))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The only change I made was in List.Select, to make it refer to how my table is called. Maybe more things need to be modified to get the desired result?&lt;/P&gt;</description>
      <pubDate>Mon, 23 Aug 2021 09:15:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Looking-for-a-different-method-to-display-Percentage-viewers/m-p/2031735#M45561</guid>
      <dc:creator>dillennwin</dc:creator>
      <dc:date>2021-08-23T09:15:19Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for a different method to display Percentage viewers retained per Second</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Looking-for-a-different-method-to-display-Percentage-viewers/m-p/2032068#M45573</link>
      <description>&lt;P&gt;You dont need to make any changes. You can use it as it is:-&lt;/P&gt;&lt;LI-CODE lang="python"&gt;(row)=&amp;gt; List.Average(Record.FieldValues(Record.SelectFields(row, List.Select(Table.ColumnNames(#"Changed Type"), each Text.Contains(_,"Video")))))&lt;/LI-CODE&gt;&lt;P&gt;if it is still not working then you can go to advance editor and replace last two line with below code:-&lt;/P&gt;&lt;LI-CODE lang="python"&gt;#"Added Custom" = Table.AddColumn
    (
        #"Changed Type",
        "AverageMonth",
        (row)=&amp;gt; List.Average(Record.FieldValues(Record.SelectFields(row, List.Select(Table.ColumnNames(#"Changed Type"), each Text.Contains(_,"Video")))))
    )
in
   #"Added Custom"&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 23 Aug 2021 11:00:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Looking-for-a-different-method-to-display-Percentage-viewers/m-p/2032068#M45573</guid>
      <dc:creator>Samarth_18</dc:creator>
      <dc:date>2021-08-23T11:00:44Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for a different method to display Percentage viewers retained per Second</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Looking-for-a-different-method-to-display-Percentage-viewers/m-p/2032472#M45584</link>
      <description>&lt;P&gt;I initially tried doing this, however it gave me this error: Expression.Error: The name 'Changed Type' wasn't recognized. Make sure it's spelled correctly.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is also the reason I changed it, thinking that would solve it. Replacing the last two lines in the advanced editor didn't seem to make a difference.&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;</description>
      <pubDate>Mon, 23 Aug 2021 14:00:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Looking-for-a-different-method-to-display-Percentage-viewers/m-p/2032472#M45584</guid>
      <dc:creator>dillennwin</dc:creator>
      <dc:date>2021-08-23T14:00:22Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for a different method to display Percentage viewers retained per Second</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Looking-for-a-different-method-to-display-Percentage-viewers/m-p/2032511#M45585</link>
      <description>&lt;P&gt;Could you please share your advance editor code?or your PBIX file after removing sensitive data?&lt;/P&gt;</description>
      <pubDate>Mon, 23 Aug 2021 14:18:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Looking-for-a-different-method-to-display-Percentage-viewers/m-p/2032511#M45585</guid>
      <dc:creator>Samarth_18</dc:creator>
      <dc:date>2021-08-23T14:18:33Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for a different method to display Percentage viewers retained per Second</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Looking-for-a-different-method-to-display-Percentage-viewers/m-p/2034511#M45637</link>
      <description>&lt;P&gt;Here you go:&amp;nbsp;&lt;A href="https://1drv.ms/u/s!Al_2VhmuKdfEfV5Uw3kvu3iz108?e=rSgQMF" target="_blank"&gt;https://1drv.ms/u/s!Al_2VhmuKdfEfV5Uw3kvu3iz108?e=rSgQMF&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Aug 2021 09:13:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Looking-for-a-different-method-to-display-Percentage-viewers/m-p/2034511#M45637</guid>
      <dc:creator>dillennwin</dc:creator>
      <dc:date>2021-08-24T09:13:12Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for a different method to display Percentage viewers retained per Second</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Looking-for-a-different-method-to-display-Percentage-viewers/m-p/2034666#M45639</link>
      <description>&lt;P&gt;I am not able to run tranformation since data imported from excel and its available at your desktop but based on understanding you can copy paste below code at advance editor:-&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;let
    Bron = Excel.Workbook(File.Contents("C:\Users\Dylan\Desktop\Data\Facebook post\Percentage of views per second.xlsx"), null, true),
    #"Percentage of Views per second_Sheet" = Bron{[Item="Percentage of Views per second",Kind="Sheet"]}[Data],
    #"Headers met verhoogd niveau" = Table.PromoteHeaders(#"Percentage of Views per second_Sheet", [PromoteAllScalars=true]),
    #"Type gewijzigd" = Table.TransformColumnTypes(#"Headers met verhoogd niveau",{{"Seconds", Int64.Type}, {"109362120541400_342171220593821", type number}, {"109362120541400_341586157318994", type number}, {"109362120541400_281096060034671", type number}, {"109362120541400_295363821941228", type number}, {"109362120541400_330793401731603", type number}, {"109362120541400_305269554283988", type number}, {"109362120541400_313523823458561", type number}, {"109362120541400_296695761808034", type number}, {"109362120541400_325923882218555", type number}, {"109362120541400_284139049730372", type number}, {"109362120541400_307816697362607", type number}, {"109362120541400_311663670311243", type number}, {"109362120541400_302894911188119", type number}, {"109362120541400_298575068286770", type number}, {"109362120541400_307153587428918", type number}}),
    #"Aangepaste kolom toegevoegd" = Table.AddColumn(#"Type gewijzigd", "Duration", each #duration(0,0,0,[Seconds])),
    #"Removed Columns" = Table.RemoveColumns(#"Renamed Columns",{"Duration"}),
    #"Renamed Columns" = Table.RenameColumns(#"Aangepaste kolom toegevoegd",{{"109362120541400_342171220593821", "Video 1"}, {"109362120541400_341586157318994", "Video 2"}, {"109362120541400_281096060034671", "Video 3"}, {"109362120541400_295363821941228", "Video 4"}, {"109362120541400_330793401731603", "Video 5"}, {"109362120541400_305269554283988", "Video 6"}, {"109362120541400_313523823458561", "Video 7"}, {"109362120541400_296695761808034", "Video 8"}, {"109362120541400_325923882218555", "Video 9"}, {"109362120541400_284139049730372", "Video 10"}, {"109362120541400_307816697362607", "Video 11"}, {"109362120541400_302894911188119", "Video 13"}, {"109362120541400_311663670311243", "Video 12"}, {"109362120541400_298575068286770", "Video 14"}, {"109362120541400_307153587428918", "Video 15"}}),
    #"Added Custom" = Table.AddColumn
    (
        #"Renamed Columns",
        "AverageMonth",
        (row)=&amp;gt; List.Average(Record.FieldValues(Record.SelectFields(row, List.Select(Table.ColumnNames(#"Renamed Columns"), each Text.Contains(_,"Video")))))
    )
in
   #"Added Custom"&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 24 Aug 2021 10:27:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Looking-for-a-different-method-to-display-Percentage-viewers/m-p/2034666#M45639</guid>
      <dc:creator>Samarth_18</dc:creator>
      <dc:date>2021-08-24T10:27:15Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for a different method to display Percentage viewers retained per Second</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Looking-for-a-different-method-to-display-Percentage-viewers/m-p/2034724#M45642</link>
      <description>&lt;P&gt;Thank you very much, I appreciate you for helping me for the past few days.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Aug 2021 10:57:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Looking-for-a-different-method-to-display-Percentage-viewers/m-p/2034724#M45642</guid>
      <dc:creator>dillennwin</dc:creator>
      <dc:date>2021-08-24T10:57:19Z</dc:date>
    </item>
  </channel>
</rss>

