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
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
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.