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

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now

Reply
Anonymous
Not applicable

Header Column

Hi!

 

I'm new to Power BI and it's the first time I see this error. 

When I try a DAX formula, it don't recognize the column header name. 

 

For exemple: I want to do a IF with the column "idade" (age in portuguese 🙂 ), and goes like this:

 

help-pbi.png

 

The "idade" (age) field is numeric.

 

Thanx for any help!

 

1 ACCEPTED SOLUTION
Samarth_18
Community Champion
Community Champion

Hi @Anonymous ,

 

If you are trying to use column inside the measure then you need aggregator functions like max,min,sum.

So for your case it would be like this

 

Test = if(max(table[idade ]....

 

Thanks,

Samarth

Best Regards,
Samarth

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin

View solution in original post

3 REPLIES 3
Samarth_18
Community Champion
Community Champion

Hi @Anonymous ,

 

If you are trying to use column inside the measure then you need aggregator functions like max,min,sum.

So for your case it would be like this

 

Test = if(max(table[idade ]....

 

Thanks,

Samarth

Best Regards,
Samarth

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin

@Anonymous  if you need the exact value then you can use VALUES() function.

 

Eg- VALUES (idade)

truptis
Community Champion
Community Champion

Hi @Anonymous ,

What is your condition that you want to give in this DAX expression? 

 

Format of IF is - IF(condition, return value for condition being TRUE, your else condition)

Eg- you want to show if age is > 10 then display "yes" else display "no"

So in that case, you will write this formula:

 

Result= if('tablename'[idade] > 10, "Yes", "No"))

 

If you could give me your exact requirement, i can help you in writing the exact query.

 

Please hit the thumbs up if it helps you. Thanks.

 

Regards,

TruptiS

Helpful resources

Announcements
Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

February 2024 Update Carousel

Power BI Monthly Update - February 2024

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

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.

Top Solution Authors