<?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 Cannot Identify the table that contain column in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cannot-Identify-the-table-that-contain-column/m-p/4078851#M161944</link>
    <description>&lt;P&gt;Hi team,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kindly help me with this.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I executed this table measure in the DAX query view. The problem with this is, that I am unable to use this in Measure and show value in the card. the objective is to identify the rank of employees between selected dates and show it in the card. So I tried this approach of creating the virtual table and adding the columns. This works fine in the Query view, but when I try to use calculate to convert it into measure. it's saying the rank column cannot be found.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Here is the screenshot of the DAX Query view (it's working fine) :&amp;nbsp;&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 did some search and found the data linage can effect this kind of approach. But couldn't figure out how to fix the below problem.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I even tried removing resolve numerator and denominator and replace it with directly "Resolve" measure I created but no change.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.google.com/spreadsheets/d/1-QfctZ67KcTpQvQIRJx_01VBYtjydDR3t5mArFD9PKs/edit?gid=0#gid=0" target="_blank" rel="noopener"&gt;Test file - Google Sheets&amp;nbsp;( This data is exact replica of my dataset, except removed the confidential data).&amp;nbsp;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.google.com/spreadsheets/d/1-QfctZ67KcTpQvQIRJx_01VBYtjydDR3t5mArFD9PKs/edit?gid=0#gid=0" target="_blank" rel="noopener"&gt;&amp;nbsp;&lt;/A&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;VAR Tabled =
    SUMMARIZE(
                FILTER(
                    'Metric Table',
                    'Metric Table'[Date] &amp;lt;= MAX('Metric Table'[Date]) &amp;amp;&amp;amp;
                    'Metric Table'[Date] &amp;gt;= MIN('Metric Table'[Date]) &amp;amp;&amp;amp;
                    'Metric Table'[Site + LOB] = "Hyderabad - Rider"
                ),
                'Metric Table'[Employee Name],
                'Metric Table'[Site + LOB]
            ,
            "Resolve Numerator", SUM('Metric Table'[Resolve Numerator]),
            "Resolve Denominator", SUM('Metric Table'[Resolve Denominator]))

VAR newtable = SELECTCOLUMNS(Tabled,
			'Metric Table'[Employee Name],
			 "Resolve1", [Resolve Numerator]/[Resolve Denominator]
				)
VAR test1 = SELECTCOLUMNS(newtable,
			'Metric Table'[Employee Name], 
			"attain", [Resolve1]/0.60
				)
VAR test_filter = FILTER(test1, 
			[attain]&amp;lt;&amp;gt;BLANK()
			)
VAR Ranking = SELECTCOLUMNS(test_filter,
				'Metric Table'[Employee Name],"Rank1", 
				RANKX(test_filter, [attain],, DESC,Dense)
			)
VAR test2 =  FILTER(Ranking, 
			'Metric Table'[Employee Name] = "Santosh Kumari"
		)
VAR test4 = SELECTCOLUMNS(test2, "Only Rank",[Rank1])

RETURN
test4&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 04 Aug 2024 17:24:07 GMT</pubDate>
    <dc:creator>Sri_phani</dc:creator>
    <dc:date>2024-08-04T17:24:07Z</dc:date>
    <item>
      <title>Cannot Identify the table that contain column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cannot-Identify-the-table-that-contain-column/m-p/4078851#M161944</link>
      <description>&lt;P&gt;Hi team,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kindly help me with this.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I executed this table measure in the DAX query view. The problem with this is, that I am unable to use this in Measure and show value in the card. the objective is to identify the rank of employees between selected dates and show it in the card. So I tried this approach of creating the virtual table and adding the columns. This works fine in the Query view, but when I try to use calculate to convert it into measure. it's saying the rank column cannot be found.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Here is the screenshot of the DAX Query view (it's working fine) :&amp;nbsp;&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 did some search and found the data linage can effect this kind of approach. But couldn't figure out how to fix the below problem.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I even tried removing resolve numerator and denominator and replace it with directly "Resolve" measure I created but no change.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.google.com/spreadsheets/d/1-QfctZ67KcTpQvQIRJx_01VBYtjydDR3t5mArFD9PKs/edit?gid=0#gid=0" target="_blank" rel="noopener"&gt;Test file - Google Sheets&amp;nbsp;( This data is exact replica of my dataset, except removed the confidential data).&amp;nbsp;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.google.com/spreadsheets/d/1-QfctZ67KcTpQvQIRJx_01VBYtjydDR3t5mArFD9PKs/edit?gid=0#gid=0" target="_blank" rel="noopener"&gt;&amp;nbsp;&lt;/A&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;VAR Tabled =
    SUMMARIZE(
                FILTER(
                    'Metric Table',
                    'Metric Table'[Date] &amp;lt;= MAX('Metric Table'[Date]) &amp;amp;&amp;amp;
                    'Metric Table'[Date] &amp;gt;= MIN('Metric Table'[Date]) &amp;amp;&amp;amp;
                    'Metric Table'[Site + LOB] = "Hyderabad - Rider"
                ),
                'Metric Table'[Employee Name],
                'Metric Table'[Site + LOB]
            ,
            "Resolve Numerator", SUM('Metric Table'[Resolve Numerator]),
            "Resolve Denominator", SUM('Metric Table'[Resolve Denominator]))

VAR newtable = SELECTCOLUMNS(Tabled,
			'Metric Table'[Employee Name],
			 "Resolve1", [Resolve Numerator]/[Resolve Denominator]
				)
VAR test1 = SELECTCOLUMNS(newtable,
			'Metric Table'[Employee Name], 
			"attain", [Resolve1]/0.60
				)
VAR test_filter = FILTER(test1, 
			[attain]&amp;lt;&amp;gt;BLANK()
			)
VAR Ranking = SELECTCOLUMNS(test_filter,
				'Metric Table'[Employee Name],"Rank1", 
				RANKX(test_filter, [attain],, DESC,Dense)
			)
VAR test2 =  FILTER(Ranking, 
			'Metric Table'[Employee Name] = "Santosh Kumari"
		)
VAR test4 = SELECTCOLUMNS(test2, "Only Rank",[Rank1])

RETURN
test4&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 04 Aug 2024 17:24:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cannot-Identify-the-table-that-contain-column/m-p/4078851#M161944</guid>
      <dc:creator>Sri_phani</dc:creator>
      <dc:date>2024-08-04T17:24:07Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot Identify the table that contain column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cannot-Identify-the-table-that-contain-column/m-p/4078910#M161946</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="475653" data-lia-user-login="Sri_phani" class="lia-mention lia-mention-user"&gt;Sri_phani&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;As i understood your problem you have Three slicer in page&lt;BR /&gt;1.&amp;nbsp; Employee Name&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. site+LOB&lt;/P&gt;
&lt;P&gt;3. Dates&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Try below measure&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;create Measure for attain_measure&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;attain_measure=
var Numerator = SUM('Metric Table'[Resolve Numerator])
var Denominator = SUM('Metric Table'[Resolve Denominator]))
return
(divide(Numerator,Denominator))/0.60&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Create RankX_measure for your Card visuals&amp;nbsp;&lt;BR /&gt;use below measure for your Card visuals&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;RankX_measure  =
var Table_ = 
addcolumn(
filter(
all('Metric Table'[Employee Name], 'Metric Table'[Site + LOB] ),
 'Metric Table'[Site + LOB] = "Hyderabad - Rider"),
"attain",[attain_measure])
return
rankx(Table_,[attain_measure],,desc,dense)
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Dangar&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;/EM&gt;, then please consider&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Sun, 04 Aug 2024 19:00:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cannot-Identify-the-table-that-contain-column/m-p/4078910#M161946</guid>
      <dc:creator>Dangar332</dc:creator>
      <dc:date>2024-08-04T19:00:01Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot Identify the table that contain column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cannot-Identify-the-table-that-contain-column/m-p/4078911#M161947</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="569583" data-lia-user-login="Dangar332" class="lia-mention lia-mention-user"&gt;Dangar332&lt;/a&gt;&amp;nbsp;.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for responding!&amp;nbsp;&lt;/P&gt;&lt;P&gt;I only have employee name and Date as slicers. But the objective is to identify the rank amount particular LOB ( team). Example : total 200 employees are there. I don't need rank among 200 employees. I need rank among team of 50 employees. For that I tried above approach. Does your measure, help me with my problem?&lt;/P&gt;</description>
      <pubDate>Sun, 04 Aug 2024 18:34:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cannot-Identify-the-table-that-contain-column/m-p/4078911#M161947</guid>
      <dc:creator>Sri_phani</dc:creator>
      <dc:date>2024-08-04T18:34:59Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot Identify the table that contain column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cannot-Identify-the-table-that-contain-column/m-p/4078925#M161949</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="475653" data-lia-user-login="Sri_phani" class="lia-mention lia-mention-user"&gt;Sri_phani&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Please try my updated Rankx measure; it might fix your issue.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Dangar&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;/EM&gt;, then please consider&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Sun, 04 Aug 2024 19:02:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cannot-Identify-the-table-that-contain-column/m-p/4078925#M161949</guid>
      <dc:creator>Dangar332</dc:creator>
      <dc:date>2024-08-04T19:02:07Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot Identify the table that contain column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cannot-Identify-the-table-that-contain-column/m-p/4078934#M161950</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="569583" data-lia-user-login="Dangar332" class="lia-mention lia-mention-user"&gt;Dangar332&lt;/a&gt;&amp;nbsp; This worked like magic. You don't know how much relieved I am. I worked like crazy on this logic since last 2 days. Thank you very much. Have a great day!&lt;/P&gt;</description>
      <pubDate>Sun, 04 Aug 2024 19:40:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cannot-Identify-the-table-that-contain-column/m-p/4078934#M161950</guid>
      <dc:creator>Sri_phani</dc:creator>
      <dc:date>2024-08-04T19:40:15Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot Identify the table that contain column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cannot-Identify-the-table-that-contain-column/m-p/4078935#M161951</link>
      <description>&lt;P&gt;Hi, &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="475653" data-lia-user-login="Sri_phani" class="lia-mention lia-mention-user"&gt;Sri_phani&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you&lt;/P&gt;
&lt;P&gt;Have a good day.&lt;/P&gt;</description>
      <pubDate>Sun, 04 Aug 2024 19:44:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cannot-Identify-the-table-that-contain-column/m-p/4078935#M161951</guid>
      <dc:creator>Dangar332</dc:creator>
      <dc:date>2024-08-04T19:44:01Z</dc:date>
    </item>
  </channel>
</rss>

