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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
ZK
New Member

Date Forumla

I have a simple date function. The function was created some time back and it works fine. Now, when I copy the same function in the same model it does not recognize the columns which the same function is using. Does anyone have similar experience?

 

Thank you

 

date issue.jpg

2 ACCEPTED SOLUTIONS
Anonymous
Not applicable

This is because in your first example it is being evaulated as a column where as in the second it is a measure.

 

In a column you can use another column in the formula without aggregating due to the row context. Measures do not have row context so you will need to aggregate the columns. Which aggregation you should use depends on the model.

 

View solution in original post

praiselyabraham
Resolver II
Resolver II

Hi , 

 

As indicated in the error, you are creating a measure instead of a column , measure's work on aggregated format, where as columns work on row level. This is the reason for your error indicated.

 

Regards.

View solution in original post

4 REPLIES 4
praiselyabraham
Resolver II
Resolver II

Hi , 

 

As indicated in the error, you are creating a measure instead of a column , measure's work on aggregated format, where as columns work on row level. This is the reason for your error indicated.

 

Regards.

Thank you! This was indeed the problem!

Anonymous
Not applicable

This is because in your first example it is being evaulated as a column where as in the second it is a measure.

 

In a column you can use another column in the formula without aggregating due to the row context. Measures do not have row context so you will need to aggregate the columns. Which aggregation you should use depends on the model.

 

Hi Thomas!

 

Thank you so much! I'm a bit embarassed that I did not think about that! Of course this has solved the problem. Thanks!!! 🙂

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors