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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
Anonymous
Not applicable

can a previously defined calculated fields be used while creating a measure??

Hi All PBI Gurus 🙂,

 

Though i'm pretty new to POWER BI, i'm already in love with it and trying to learn in pretty fast.

 

facing a new challenge today, where i know the reason but not able to fix it. As per my knowledge fields used in measures has to be used with aggregation functions but....

 

Problem Statement: Trying to create a new measure named "Current_Status" where i am using a previously defined calculated field "Status". The field "[F1U?]" from the data is a boolean field holding answers in Yes/No.

 

Below mentioned is the DAX code,

 

Current_Status = IF(AND(query[F1U?]="No", (query[Status]>=5)),"Updated",
IF(AND(query[F1U?]="No", query[Status]<5),"Pending",
IF(query[Status]=7,"Updated","Pending")))
 
attached are the error screenshots for reference.image.png
 
Thanks in Advance for you help!
1 ACCEPTED SOLUTION
Anonymous
Not applicable

you should create a colum instead of a measure. Measures are used to summarise. 

View solution in original post

1 REPLY 1
Anonymous
Not applicable

you should create a colum instead of a measure. Measures are used to summarise. 

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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