Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Pallavi_m
Helper I
Helper I

DAX not identifying the column names

Hi,

When I'm writing a measure, it prompts CANNOT FIND NAME[COLUMN NAME].

 

For ex: If( 'category'[oil]='yes' ,'code1','code2')

 

the column ('category'[oil]) in above dax works for the previously written measures, but now when I want to use the same column and write another measure. It's prompting "CANNOT FIND NAME[COLUMN NAME]"

This is happening with other columns and tables too.

Why is this suddenly happening?

Please help me.

2 ACCEPTED SOLUTIONS
Greg_Deckler
Community Champion
Community Champion

@Pallavi_m When you reference a column in a measure, you have to use an aggregation like MAX, MIN, SUM, etc. Are you sure that you have previously created calculated columns (not measures) because with calculated columns you do not need the aggregation.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

Anonymous
Not applicable

Hi @Pallavi_m ,

Is [forecast] a measure or one field in the table? If it is a measure, please update the formula of measure as below and check if it can return the correct result...

MeasureName = CALCULATE ( [forecast], FILTER ( 'Region', 'Region'[country] <> BLANK () ) )

Otherwise, please update the formula of the measure as below:

MeasureName = CALCULATE ( SUM([forecast]), FILTER ( 'Region', 'Region'[country] <> BLANK () ) )

If the above one can't help you get the desired result, please provide some sample data in the table 'Region' (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.

How to upload PBI in Community

Best Regards

View solution in original post

6 REPLIES 6
Greg_Deckler
Community Champion
Community Champion

@Pallavi_m When you reference a column in a measure, you have to use an aggregation like MAX, MIN, SUM, etc. Are you sure that you have previously created calculated columns (not measures) because with calculated columns you do not need the aggregation.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

its a text column...

if( table[textcolumn] = "A", "---")

but this text column not recognized by dax, 

I'm trying to use a filter in calculate function, and it says CANNOT FIND NAME[COLUMN NAME]

where I've used the same filter previously for other measure and they are working fine in the page/report.

hi @Pallavi_m 

 

If there is row context, we can use table[col] like values. A row contex exist in calculated columns or iterators (like X-functions).

If not, it will end an error. 

 

Do you have a row context for this code?

If( 'category'[oil]='yes' ,'code1','code2')

 

You say it worked previously, can you also share the previous code?

calculate([forecast],'Region'[country] <>blank())

when I'm trying to use the region[country] filter , it says cannot find

 

Anonymous
Not applicable

Hi @Pallavi_m ,

Is [forecast] a measure or one field in the table? If it is a measure, please update the formula of measure as below and check if it can return the correct result...

MeasureName = CALCULATE ( [forecast], FILTER ( 'Region', 'Region'[country] <> BLANK () ) )

Otherwise, please update the formula of the measure as below:

MeasureName = CALCULATE ( SUM([forecast]), FILTER ( 'Region', 'Region'[country] <> BLANK () ) )

If the above one can't help you get the desired result, please provide some sample data in the table 'Region' (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.

How to upload PBI in Community

Best Regards

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.