<?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 Table with a measure in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Table-with-a-measure/m-p/3486685#M133422</link>
    <description>&lt;P&gt;I would like to create a table something like below&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;year is set for 2006, 2013 and 2018, and i can use measure like lookupvalue to find year's number of people. but the problem is Dax doesnt like measure in the created table&lt;BR /&gt;my dax is like&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;table = {(2006,LOOKUPVALUE(Census_all[2006Total], Census_all[Area Code],[selectedClub]),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; (2013,"456"),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; (2018,"789")}&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;img /&gt;&lt;img /&gt;&lt;P&gt;you can see the data is there but its table doesnt like measure&lt;/P&gt;&lt;SPAN&gt;&lt;BR /&gt;and basically 2013 and 2018 will show data but 2006 it cannot, becasue selectedClub is a measure.&lt;BR /&gt;&lt;BR /&gt;i know where is a function is like calcuated or something could solve the problem but i tried and cannot solve it.&lt;BR /&gt;any suggestions?&lt;BR /&gt;&lt;BR /&gt;thanks in advance&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Fri, 20 Oct 2023 02:20:41 GMT</pubDate>
    <dc:creator>Heyang</dc:creator>
    <dc:date>2023-10-20T02:20:41Z</dc:date>
    <item>
      <title>Table with a measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Table-with-a-measure/m-p/3486685#M133422</link>
      <description>&lt;P&gt;I would like to create a table something like below&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;year is set for 2006, 2013 and 2018, and i can use measure like lookupvalue to find year's number of people. but the problem is Dax doesnt like measure in the created table&lt;BR /&gt;my dax is like&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;table = {(2006,LOOKUPVALUE(Census_all[2006Total], Census_all[Area Code],[selectedClub]),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; (2013,"456"),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; (2018,"789")}&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;img /&gt;&lt;img /&gt;&lt;P&gt;you can see the data is there but its table doesnt like measure&lt;/P&gt;&lt;SPAN&gt;&lt;BR /&gt;and basically 2013 and 2018 will show data but 2006 it cannot, becasue selectedClub is a measure.&lt;BR /&gt;&lt;BR /&gt;i know where is a function is like calcuated or something could solve the problem but i tried and cannot solve it.&lt;BR /&gt;any suggestions?&lt;BR /&gt;&lt;BR /&gt;thanks in advance&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 20 Oct 2023 02:20:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Table-with-a-measure/m-p/3486685#M133422</guid>
      <dc:creator>Heyang</dc:creator>
      <dc:date>2023-10-20T02:20:41Z</dc:date>
    </item>
    <item>
      <title>Re: Table with a measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Table-with-a-measure/m-p/3489453#M133558</link>
      <description>&lt;P&gt;Please provide a more detailed explanation of what you are aiming to achieve. What have you tried and where are you stuck?&lt;/P&gt;</description>
      <pubDate>Sun, 22 Oct 2023 00:34:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Table-with-a-measure/m-p/3489453#M133558</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2023-10-22T00:34:46Z</dc:date>
    </item>
    <item>
      <title>Re: Table with a measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Table-with-a-measure/m-p/3492250#M133721</link>
      <description>&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;basically i want to show a chart like this&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;and i converted to the table and i understand the data structure should looks like below&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;and this is how my table looks like, and i have a slicer the user could select a area which is link to the areacode to the table (selected area is a measure)&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;and i want to recreate a table use the dax&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;{&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; (2006,"row1",LOOKUPVALUE(Census_all[2006Total], Census_all[Area Code],&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;[selected area]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; (2013,"row2",LOOKUPVALUE(StudyArea[areaCode], StudyArea[club], "Bethells Beach SLSP")),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; (2018,"row3","123")&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; }&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;but in the table, year 2006 wouldnt show the value because i think [selected area] is a measure.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;year 2013 and 2018 are fine.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;How to solve the problem&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;BR /&gt;Thanks in advance&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Oct 2023 20:18:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Table-with-a-measure/m-p/3492250#M133721</guid>
      <dc:creator>Heyang</dc:creator>
      <dc:date>2023-10-23T20:18:14Z</dc:date>
    </item>
    <item>
      <title>Re: Table with a measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Table-with-a-measure/m-p/3492278#M133722</link>
      <description>&lt;P&gt;what you show is not valid DAX.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can use COALESCE to handle scenarios when measures return BLANK()&lt;/P&gt;</description>
      <pubDate>Mon, 23 Oct 2023 20:37:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Table-with-a-measure/m-p/3492278#M133722</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2023-10-23T20:37:14Z</dc:date>
    </item>
    <item>
      <title>Re: Table with a measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Table-with-a-measure/m-p/3492516#M133742</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the quick response.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to create a new table, and you can see row1 value3 isnt shown up. I guess the reason is [areaCodeForSelectedClub] is a measure and PowerBI doesnt like its not been static value?&lt;BR /&gt;&lt;BR /&gt;and how do I fix it?&lt;/P&gt;&lt;P&gt;thanks in advance&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;</description>
      <pubDate>Mon, 23 Oct 2023 22:56:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Table-with-a-measure/m-p/3492516#M133742</guid>
      <dc:creator>Heyang</dc:creator>
      <dc:date>2023-10-23T22:56:25Z</dc:date>
    </item>
    <item>
      <title>Re: Table with a measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Table-with-a-measure/m-p/3492519#M133744</link>
      <description>&lt;P&gt;Don't use LOOKUPVALUE unless you really have to.&lt;/P&gt;
&lt;P&gt;Use proper table definitions&amp;nbsp;&lt;A href="https://learn.microsoft.com/en-us/dax/datatable-function" target="_blank"&gt;DATATABLE function - DAX | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Implement your business logic as a calculated column rather than a measure, or use COALESCE.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Oct 2023 23:02:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Table-with-a-measure/m-p/3492519#M133744</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2023-10-23T23:02:13Z</dc:date>
    </item>
    <item>
      <title>Re: Table with a measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Table-with-a-measure/m-p/3492620#M133753</link>
      <description>&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Oct 2023 01:28:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Table-with-a-measure/m-p/3492620#M133753</guid>
      <dc:creator>Heyang</dc:creator>
      <dc:date>2023-10-24T01:28:32Z</dc:date>
    </item>
  </channel>
</rss>

