<?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 Column not showing in DAX measure in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Column-not-showing-in-DAX-measure/m-p/4880669#M185958</link>
    <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;I’m running into a strange issue while creating a DAX measure.&lt;/P&gt;&lt;P&gt;I have a table that includes a Year column, but when I try to use it inside a measure, the column does not appear in IntelliSense, and if I type it manually, the measure returns an error.&lt;/P&gt;&lt;P&gt;Here is the expression I’m trying to write:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;DisplayItem = FORMAT(Table[Year], "0") &amp;amp; " — " &amp;amp; Table[Event&lt;/P&gt;&lt;P&gt;However:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Table[Year] doesn't show up in the field list inside the measure editor.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I type it manually, I get an error that the column cannot be found or used in this context.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Other columns from the same table appear normally.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I already checked the data type, refreshed the model, and validated relationships.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Has anyone faced this before?&lt;/P&gt;&lt;P&gt;Is there a specific reason why a column would not appear inside a DAX measure while it exists in the model?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestions would be greatl&lt;/P&gt;&lt;P&gt;y appreciated!&lt;/P&gt;&lt;P&gt;]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 20 Nov 2025 07:06:01 GMT</pubDate>
    <dc:creator>Nabha-Ahmed</dc:creator>
    <dc:date>2025-11-20T07:06:01Z</dc:date>
    <item>
      <title>Column not showing in DAX measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Column-not-showing-in-DAX-measure/m-p/4880669#M185958</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;I’m running into a strange issue while creating a DAX measure.&lt;/P&gt;&lt;P&gt;I have a table that includes a Year column, but when I try to use it inside a measure, the column does not appear in IntelliSense, and if I type it manually, the measure returns an error.&lt;/P&gt;&lt;P&gt;Here is the expression I’m trying to write:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;DisplayItem = FORMAT(Table[Year], "0") &amp;amp; " — " &amp;amp; Table[Event&lt;/P&gt;&lt;P&gt;However:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Table[Year] doesn't show up in the field list inside the measure editor.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I type it manually, I get an error that the column cannot be found or used in this context.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Other columns from the same table appear normally.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I already checked the data type, refreshed the model, and validated relationships.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Has anyone faced this before?&lt;/P&gt;&lt;P&gt;Is there a specific reason why a column would not appear inside a DAX measure while it exists in the model?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestions would be greatl&lt;/P&gt;&lt;P&gt;y appreciated!&lt;/P&gt;&lt;P&gt;]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Nov 2025 07:06:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Column-not-showing-in-DAX-measure/m-p/4880669#M185958</guid>
      <dc:creator>Nabha-Ahmed</dc:creator>
      <dc:date>2025-11-20T07:06:01Z</dc:date>
    </item>
    <item>
      <title>Re: Column not showing in DAX measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Column-not-showing-in-DAX-measure/m-p/4880728#M185961</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="922171" data-lia-user-login="Nabha-Ahmed" class="lia-mention lia-mention-user"&gt;Nabha-Ahmed&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;a column cannot be used directly in a measure context,try to wrap it inside an aggregation like MAX,MIN,SELECTEDVALUE.see below:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;DisplayItem = FORMAT(SELECTEDVALUE(Table[Year]), "0") &amp;amp; " — " &amp;amp; SELECTEDVALUE(Table[Event])&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;DisplayItem = FORMAT(MIN(Table[Year]), "0") &amp;amp; " — " &amp;amp; SELECTEDVALUE(MIN[Event])&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;DisplayItem = FORMAT(MAX(Table[Year]), "0") &amp;amp; " — " &amp;amp; MAX(Table[Event])&lt;/LI-CODE&gt;&lt;P&gt;Please give kudos or mark it as solution once confirmed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Praful&lt;/P&gt;</description>
      <pubDate>Thu, 20 Nov 2025 08:06:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Column-not-showing-in-DAX-measure/m-p/4880728#M185961</guid>
      <dc:creator>Praful_Potphode</dc:creator>
      <dc:date>2025-11-20T08:06:45Z</dc:date>
    </item>
    <item>
      <title>Re: Column not showing in DAX measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Column-not-showing-in-DAX-measure/m-p/4880738#M185962</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="922171" data-lia-user-login="Nabha-Ahmed" class="lia-mention lia-mention-user"&gt;Nabha-Ahmed&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P data-start="43" data-end="264"&gt;Your column doesn’t show up in the measure because &lt;STRONG data-start="94" data-end="141"&gt;you can’t use a raw column inside a measure&lt;/STRONG&gt;. Measures require a &lt;STRONG data-start="162" data-end="178"&gt;single value&lt;/STRONG&gt;, but a column contains &lt;STRONG data-start="202" data-end="221"&gt;multiple values&lt;/STRONG&gt;, so Power BI hides it and throws an error.&lt;/P&gt;
&lt;P data-start="266" data-end="373"&gt;To fix it, wrap the column in something that returns a single value, like &lt;STRONG data-start="340" data-end="357"&gt;SELECTEDVALUE&lt;/STRONG&gt;, &lt;STRONG data-start="359" data-end="366"&gt;MAX&lt;/STRONG&gt;, etc.:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;DisplayItem =
FORMAT(SELECTEDVALUE(Table[Year]), "0") &amp;amp;
" — " &amp;amp;
SELECTEDVALUE(Table[Event])
&lt;/LI-CODE&gt;
&lt;P&gt;Nothing is wrong with your model — the problem is the way you're referencing the column.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Nov 2025 08:46:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Column-not-showing-in-DAX-measure/m-p/4880738#M185962</guid>
      <dc:creator>Poojara_D12</dc:creator>
      <dc:date>2025-11-20T08:46:04Z</dc:date>
    </item>
    <item>
      <title>Re: Column not showing in DAX measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Column-not-showing-in-DAX-measure/m-p/4882586#M185997</link>
      <description>&lt;P&gt;Thank you for your interest and help.&lt;/P&gt;&lt;P&gt;When I run the process, this is the message that appears for me&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 22 Nov 2025 00:02:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Column-not-showing-in-DAX-measure/m-p/4882586#M185997</guid>
      <dc:creator>Nabha-Ahmed</dc:creator>
      <dc:date>2025-11-22T00:02:50Z</dc:date>
    </item>
    <item>
      <title>Re: Column not showing in DAX measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Column-not-showing-in-DAX-measure/m-p/4882587#M185998</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="837199" data-lia-user-login="Poojara_D12" class="lia-mention lia-mention-user"&gt;Poojara_D12&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you so much for help me&amp;nbsp;&lt;/P&gt;&lt;P&gt;really the "SelectedValue" worked with "Year" and "Event"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 22 Nov 2025 00:09:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Column-not-showing-in-DAX-measure/m-p/4882587#M185998</guid>
      <dc:creator>Nabha-Ahmed</dc:creator>
      <dc:date>2025-11-22T00:09:19Z</dc:date>
    </item>
    <item>
      <title>Re: Column not showing in DAX measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Column-not-showing-in-DAX-measure/m-p/4882589#M185999</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 22 Nov 2025 00:09:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Column-not-showing-in-DAX-measure/m-p/4882589#M185999</guid>
      <dc:creator>Nabha-Ahmed</dc:creator>
      <dc:date>2025-11-22T00:09:53Z</dc:date>
    </item>
    <item>
      <title>Re: Column not showing in DAX measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Column-not-showing-in-DAX-measure/m-p/4882590#M186000</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also tried another approach that worked well for me by using &lt;STRONG&gt;FIRSTNONBLANK&lt;/STRONG&gt;.&lt;BR /&gt;This function returns a single value from the column, which makes it valid inside a measure.&lt;/P&gt;&lt;P&gt;Here’s the expression:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;DisplayItem =
FORMAT(
    FIRSTNONBLANK(Table[Year], 1),
    "0"
)
&amp;amp; " — "
&amp;amp;
FIRSTNONBLANK(Table[Event], 1)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FIRSTNONBLANK&lt;/STRONG&gt; is useful when you want Power BI to pick one value from the current filter context without returning errors.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If someone runs into the same issue (column not appearing inside a measure), there are multiple ways to fix it:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;SELECTEDVALUE&lt;/STRONG&gt; → best when the context returns only one value&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;CONCATENATEX&lt;/STRONG&gt; → best when you want to combine multiple values&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;FIRSTNONBLANK&lt;/STRONG&gt; → simple and reliable when you only need one value from the filtered rows&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;All of these help you turn a column into a single value that a measure can work with.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regard.&lt;/P&gt;&lt;P&gt;Nabha Ahmed.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Follow Me In LINKEDIN&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P class=""&gt;&lt;A href="http://www.linkedin.com/in/nabha-ahmed" target="_blank" rel="noopener"&gt;www.linkedin.com/in/nabha-ahmed&lt;/A&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Sat, 22 Nov 2025 00:18:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Column-not-showing-in-DAX-measure/m-p/4882590#M186000</guid>
      <dc:creator>Nabha-Ahmed</dc:creator>
      <dc:date>2025-11-22T00:18:40Z</dc:date>
    </item>
  </channel>
</rss>

