<?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 Repeat Selected Value Across Rows In Measure in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Repeat-Selected-Value-Across-Rows-In-Measure/m-p/3116173#M110331</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The ultimate goal i have is to update the "Daily rate" page in the pbix model attached here, as in the picture below - ie insert the black lines and the red lines which are the yearly and the quarterly daily rates. Achieving this goal, i was thinking i need a measure for yearly average and quarterly average, hence the workaround below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is what i need:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;This is what i currently have:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Trying to get the sum of the year on every period in a matrix, where the field for the Period and Year are not part of the data table, but of the calendar table. I am able to get the right data using the fields ("Period" / "Year") in the Data Table (see below the right hand side), but i need to link it to Calendar table ("Fiscal Period" / " Fiscal Year") as there i have various ways of presenting the data (ie "Jan 2020") (left hand side below image). Calendar table and Data table are joined via a Bridge table (which may cause the issue...?) using column "Period Qtr Year".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;You'll find the formulas i was using in the pbix. I need the right formulas for "Value FY repeat" and "Value QTR repeat", and hopefully, i could use those 2 measures in the Daily rate chart to represent the yearly and the quarterly averages as in the first picture above.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As i cannot attached the pbix model, you can download it from here &lt;A href="https://easyupload.io/o1qif7" target="_blank" rel="noopener"&gt;https://easyupload.io/o1qif7&lt;/A&gt;&amp;nbsp;- password is demopbix.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Related topics (below) i tried without succes but don't think those solutions work as they don't have 2 tables, but only one data table:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/Desktop/Repeat-result-sum-on-all-rows/m-p/2577331" target="_blank" rel="noopener"&gt;https://community.powerbi.com/t5/Desktop/Repeat-result-sum-on-all-rows/m-p/2577331&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/DAX-Commands-and-Tips/How-repeat-SUM-for-each-ROW/m-p/1917346#M41528" target="_blank" rel="noopener"&gt;https://community.powerbi.com/t5/DAX-Commands-and-Tips/How-repeat-SUM-for-each-ROW/m-p/1917346#M41528&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You'll find 2 data tables ("Data Orders &amp;amp; Sales Demo" and "Data All Demo"). I need both as i have pages linked to both data sources. For tis exercise, we only use data from "Data All Demo" table. You will also notice a lot of measures with errors, that's because i deleted the real tables and replaced them with demo ones.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help is appreciated, as i was spending too much time on this already and could not afford any more unfortunately.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks in advance!&lt;/P&gt;</description>
    <pubDate>Tue, 07 Mar 2023 11:30:09 GMT</pubDate>
    <dc:creator>daniel_baciu</dc:creator>
    <dc:date>2023-03-07T11:30:09Z</dc:date>
    <item>
      <title>Repeat Selected Value Across Rows In Measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Repeat-Selected-Value-Across-Rows-In-Measure/m-p/3116173#M110331</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The ultimate goal i have is to update the "Daily rate" page in the pbix model attached here, as in the picture below - ie insert the black lines and the red lines which are the yearly and the quarterly daily rates. Achieving this goal, i was thinking i need a measure for yearly average and quarterly average, hence the workaround below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is what i need:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;This is what i currently have:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Trying to get the sum of the year on every period in a matrix, where the field for the Period and Year are not part of the data table, but of the calendar table. I am able to get the right data using the fields ("Period" / "Year") in the Data Table (see below the right hand side), but i need to link it to Calendar table ("Fiscal Period" / " Fiscal Year") as there i have various ways of presenting the data (ie "Jan 2020") (left hand side below image). Calendar table and Data table are joined via a Bridge table (which may cause the issue...?) using column "Period Qtr Year".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;You'll find the formulas i was using in the pbix. I need the right formulas for "Value FY repeat" and "Value QTR repeat", and hopefully, i could use those 2 measures in the Daily rate chart to represent the yearly and the quarterly averages as in the first picture above.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As i cannot attached the pbix model, you can download it from here &lt;A href="https://easyupload.io/o1qif7" target="_blank" rel="noopener"&gt;https://easyupload.io/o1qif7&lt;/A&gt;&amp;nbsp;- password is demopbix.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Related topics (below) i tried without succes but don't think those solutions work as they don't have 2 tables, but only one data table:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/Desktop/Repeat-result-sum-on-all-rows/m-p/2577331" target="_blank" rel="noopener"&gt;https://community.powerbi.com/t5/Desktop/Repeat-result-sum-on-all-rows/m-p/2577331&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/DAX-Commands-and-Tips/How-repeat-SUM-for-each-ROW/m-p/1917346#M41528" target="_blank" rel="noopener"&gt;https://community.powerbi.com/t5/DAX-Commands-and-Tips/How-repeat-SUM-for-each-ROW/m-p/1917346#M41528&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You'll find 2 data tables ("Data Orders &amp;amp; Sales Demo" and "Data All Demo"). I need both as i have pages linked to both data sources. For tis exercise, we only use data from "Data All Demo" table. You will also notice a lot of measures with errors, that's because i deleted the real tables and replaced them with demo ones.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help is appreciated, as i was spending too much time on this already and could not afford any more unfortunately.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks in advance!&lt;/P&gt;</description>
      <pubDate>Tue, 07 Mar 2023 11:30:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Repeat-Selected-Value-Across-Rows-In-Measure/m-p/3116173#M110331</guid>
      <dc:creator>daniel_baciu</dc:creator>
      <dc:date>2023-03-07T11:30:09Z</dc:date>
    </item>
    <item>
      <title>Re: Repeat Selected Value Across Rows In Measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Repeat-Selected-Value-Across-Rows-In-Measure/m-p/3119753#M110586</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="360451" data-lia-user-login="daniel_baciu" class="lia-mention lia-mention-user"&gt;daniel_baciu&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is this the sort of thing that you need?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;&lt;STRONG&gt;Year total&lt;/STRONG&gt; = CALCULATE([Value All Data k$ MTD Demo Daily],all(),'Dim Calendar'[Fiscal Year]=SELECTEDVALUE('Dim Calendar'[Fiscal Year]))&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;&lt;STRONG&gt;Qtr total&lt;/STRONG&gt; = CALCULATE([Value All Data k$ MTD Demo Daily],all(),'Dim Calendar'[Fiscal Quarter]=SELECTEDVALUE('Dim Calendar'[Fiscal Quarter]))&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;These return the aggregation of &lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;EM&gt;[Value All Data k$ MTD Demo Daily]&lt;/EM&gt; for the relevant year or quarter, even if this field is not in the same visual:-&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;img /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;HTH&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Pi&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 08 Mar 2023 19:45:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Repeat-Selected-Value-Across-Rows-In-Measure/m-p/3119753#M110586</guid>
      <dc:creator>PiEye</dc:creator>
      <dc:date>2023-03-08T19:45:39Z</dc:date>
    </item>
    <item>
      <title>Re: Repeat Selected Value Across Rows In Measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Repeat-Selected-Value-Across-Rows-In-Measure/m-p/3122037#M110761</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="366121" data-lia-user-login="PiEye" class="lia-mention lia-mention-user"&gt;PiEye&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks for your input.&lt;/P&gt;&lt;P&gt;Can you also share your updated model? Trying to add a measure using your suggested formula is pointing an error in my model (&lt;EM&gt;A function 'SELECTEDVALUE' has been used in a True/False expression that is used as a table filter expression. This is not allowed.&lt;/EM&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;</description>
      <pubDate>Thu, 09 Mar 2023 16:20:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Repeat-Selected-Value-Across-Rows-In-Measure/m-p/3122037#M110761</guid>
      <dc:creator>daniel_baciu</dc:creator>
      <dc:date>2023-03-09T16:20:22Z</dc:date>
    </item>
    <item>
      <title>Re: Repeat Selected Value Across Rows In Measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Repeat-Selected-Value-Across-Rows-In-Measure/m-p/3123334#M110866</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="360451" data-lia-user-login="daniel_baciu" class="lia-mention lia-mention-user"&gt;daniel_baciu&lt;/a&gt;&amp;nbsp;, sure!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can&amp;nbsp; you open this link?&amp;nbsp;&lt;A href="https://drive.google.com/file/d/1eccjYD3Ushtie-pAEULjQTI743iQuPCS/view?usp=share_link" target="_blank"&gt;https://drive.google.com/file/d/1eccjYD3Ushtie-pAEULjQTI743iQuPCS/view?usp=share_link&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Pi&lt;/P&gt;</description>
      <pubDate>Fri, 10 Mar 2023 08:08:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Repeat-Selected-Value-Across-Rows-In-Measure/m-p/3123334#M110866</guid>
      <dc:creator>PiEye</dc:creator>
      <dc:date>2023-03-10T08:08:55Z</dc:date>
    </item>
    <item>
      <title>Re: Repeat Selected Value Across Rows In Measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Repeat-Selected-Value-Across-Rows-In-Measure/m-p/3131400#M111439</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="366121" data-lia-user-login="PiEye" class="lia-mention lia-mention-user"&gt;PiEye&lt;/a&gt;&amp;nbsp; - no, i cannot, but i have requested it using the Request access button.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Mar 2023 16:37:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Repeat-Selected-Value-Across-Rows-In-Measure/m-p/3131400#M111439</guid>
      <dc:creator>daniel_baciu</dc:creator>
      <dc:date>2023-03-14T16:37:24Z</dc:date>
    </item>
    <item>
      <title>Re: Repeat Selected Value Across Rows In Measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Repeat-Selected-Value-Across-Rows-In-Measure/m-p/3131967#M111480</link>
      <description>&lt;P&gt;Have got the request &amp;amp; granted access. Let me know if you run into any more issues&lt;/P&gt;</description>
      <pubDate>Tue, 14 Mar 2023 20:49:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Repeat-Selected-Value-Across-Rows-In-Measure/m-p/3131967#M111480</guid>
      <dc:creator>PiEye</dc:creator>
      <dc:date>2023-03-14T20:49:51Z</dc:date>
    </item>
    <item>
      <title>Re: Repeat Selected Value Across Rows In Measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Repeat-Selected-Value-Across-Rows-In-Measure/m-p/3142418#M112249</link>
      <description>&lt;P&gt;Many thanks you for the solution &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="366121" data-lia-user-login="PiEye" class="lia-mention lia-mention-user"&gt;PiEye&lt;/a&gt;&amp;nbsp;!&lt;/P&gt;&lt;P&gt;Your proposed formulas were not exactly what i needed, but i player around a bit on them and i found the right ones.&lt;/P&gt;&lt;P&gt;For Full Year this is what worked for me (i had to add " 'Dim Calendar'&amp;nbsp;" to the "ALL()" expression):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Value FY repeat 6 = 
CALCULATE(
    [Value All Data k$ MTD Demo Daily],
    all('Dim Calendar'),
    'Dim Calendar'[Fiscal Year] = SELECTEDVALUE('Dim Calendar'[Fiscal Year])
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;For QTR same (i had to add "&amp;nbsp;&lt;SPAN&gt;'D&lt;/SPAN&gt;&lt;SPAN&gt;i&lt;/SPAN&gt;&lt;SPAN&gt;m Calendar'[Fi&lt;/SPAN&gt;&lt;SPAN&gt;scal Period]&amp;nbsp;&lt;/SPAN&gt;" to the "ALL()" expression):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Value QTR repeat 7 = 
CALCULATE(
    [Value All Data k$ MTD Demo Daily],
    all('Dim Calendar'[Fiscal Period]),
    'Dim Calendar'[Fiscal Quarter] = SELECTEDVALUE('Dim Calendar'[Fiscal Quarter])
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have now the same values on the absolute numbers which i could then divide to get the right Daily numbers.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Mar 2023 13:02:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Repeat-Selected-Value-Across-Rows-In-Measure/m-p/3142418#M112249</guid>
      <dc:creator>daniel_baciu</dc:creator>
      <dc:date>2023-03-20T13:02:42Z</dc:date>
    </item>
  </channel>
</rss>

