<?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 Report Builder: Power BI measures behave differently in Report Builder Matrix Visualisation in Report Server</title>
    <link>https://community.fabric.microsoft.com/t5/Report-Server/Report-Builder-Power-BI-measures-behave-differently-in-Report/m-p/3585511#M35430</link>
    <description>&lt;P&gt;I have to generate a paginated report for a matrix table. I've created dummy data as follows:&lt;BR /&gt;&lt;BR /&gt;Table A (storing different hierarchies of fields):&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Table B (storing comments in &lt;SPAN&gt;concatenated format):&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;The DAX formula I used to allow comments to be shown at specific level:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;comments_measure = 
CALCULATE(
    MAX(comments[comments]),
    FILTER(
        comments,
        comments[selected] = SELECTEDVALUE('fact'[Alphabet])&amp;amp;SELECTEDVALUE('fact'[Food])
    ))&lt;/LI-CODE&gt;&lt;P&gt;&lt;SPAN&gt;The results in Power BI looks like this:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;However when I imported the same measure in Report Builder and created the matrix visual, I get the following results:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;The comments for Level 1 (Alphabet) are not being reflected correctly.&lt;BR /&gt;&lt;BR /&gt;Any idea to get this working correctly?&lt;/P&gt;</description>
    <pubDate>Fri, 15 Dec 2023 09:39:30 GMT</pubDate>
    <dc:creator>helloworld_</dc:creator>
    <dc:date>2023-12-15T09:39:30Z</dc:date>
    <item>
      <title>Report Builder: Power BI measures behave differently in Report Builder Matrix Visualisation</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Report-Builder-Power-BI-measures-behave-differently-in-Report/m-p/3585511#M35430</link>
      <description>&lt;P&gt;I have to generate a paginated report for a matrix table. I've created dummy data as follows:&lt;BR /&gt;&lt;BR /&gt;Table A (storing different hierarchies of fields):&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Table B (storing comments in &lt;SPAN&gt;concatenated format):&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;The DAX formula I used to allow comments to be shown at specific level:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;comments_measure = 
CALCULATE(
    MAX(comments[comments]),
    FILTER(
        comments,
        comments[selected] = SELECTEDVALUE('fact'[Alphabet])&amp;amp;SELECTEDVALUE('fact'[Food])
    ))&lt;/LI-CODE&gt;&lt;P&gt;&lt;SPAN&gt;The results in Power BI looks like this:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;However when I imported the same measure in Report Builder and created the matrix visual, I get the following results:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;The comments for Level 1 (Alphabet) are not being reflected correctly.&lt;BR /&gt;&lt;BR /&gt;Any idea to get this working correctly?&lt;/P&gt;</description>
      <pubDate>Fri, 15 Dec 2023 09:39:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Report-Builder-Power-BI-measures-behave-differently-in-Report/m-p/3585511#M35430</guid>
      <dc:creator>helloworld_</dc:creator>
      <dc:date>2023-12-15T09:39:30Z</dc:date>
    </item>
    <item>
      <title>Re: Report Builder: Power BI measures behave differently in Report Builder Matrix Visualisation</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Report-Builder-Power-BI-measures-behave-differently-in-Report/m-p/5232246#M43595</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="661284" data-lia-user-login="helloworld_" class="lia-mention lia-mention-user"&gt;helloworld_&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SELECTEDVALUE works nicely inside Power BI visuals because each cell has a clear filter context. But when you bring the same measure into Report Builder, the matrix doesn’t pass that context in the same way, so the Alphabet‑level comments don’t show up correctly.&lt;/P&gt;&lt;P&gt;A cleaner way is to build a key column in both tables (for example, Alphabet &amp;amp; Food) and then use that in your measure. Something like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;measure =&lt;BR /&gt;CALCULATE (&lt;BR /&gt;MAX ( comments[comments] ),&lt;BR /&gt;FILTER ( comments, comments[Key] = MAX ( fact[Key] ) )&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This way, the measure doesn’t rely on SELECTEDVALUE but instead uses MAX, which works consistently in both Power BI and Paginated Reports. If you only want Alphabet‑level comments, you can make a separate measure that matches on Alphabet alone&lt;/P&gt;&lt;P&gt;alphabet =&lt;BR /&gt;CALCULATE (&lt;BR /&gt;MAX ( comments[comments] ),&lt;BR /&gt;FILTER ( comments, comments[Alphabet] = MAX ( fact[Alphabet] ) )&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That should give you consistent results in Report Builder as well as Power BI&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If this reply helped you please mark it as a solutions .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sunita&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jun 2026 09:47:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Report-Builder-Power-BI-measures-behave-differently-in-Report/m-p/5232246#M43595</guid>
      <dc:creator>trivedisunita</dc:creator>
      <dc:date>2026-06-24T09:47:24Z</dc:date>
    </item>
  </channel>
</rss>

