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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Anonymous
Not applicable

Calculated Column

Hello Team,

 

I have a calculated column which is POR 

 

The formula is [Qty]*[Cost]

 

Is there a way to create a placeholder field using the POR to divide them into two classification:

 

POR > 300000 THEN "Above 300k"

POR < 300000 THEN "Below 300k'

 

I tried creating IF but it does not filter correctly.

 

 

12 REPLIES 12
Anonymous
Not applicable

@Anonymous 

Seems it is the problem of relationship. Without the pbix model it is hard to detect. You can try create a measure instead a column:

 

Measure  = IF( MAX('Historical_POR'[POR]) > 300000, "HIGH", "LOW"))
 
 
Paul Zheng _ Community Support Team
If this post helps, please Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

You can create another calculated column using IF statement.

 

Column_POR = IF(TableName[POR]>=300000, "Above 300k", "Below 300k")

Anonymous
Not applicable

i got values more than 300k, but it does show in the filter for values above 300000

 

Laedays_1-1632379362224.png

 

 

Anonymous
Not applicable

Laedays_0-1632379454892.png

 

Anonymous
Not applicable

hello @Anonymous this is not working properly i do not know why

FarhanAhmed
Community Champion
Community Champion

You can create another calculated column based on this calcualted column using IF statement.

 

IF(Table[POR] >300000, "Above 300k", "Below 300k")







Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!

Proud to be a Super User!




Anonymous
Not applicable

I did this but it does not have above 300k selection, although i got some POR with more than 300k,

Formula: 

300K POR = IF('PMMT Historical Data'[POR] > 300000,"Above","Below")
 
 

Laedays_0-1632376313584.png

 

Try this:

rks_0-1632379510206.png

 

Anonymous
Not applicable

@rks still showing incorrect result. werid..

 

Laedays_1-1632379728477.png

 

Laedays_0-1632379718883.png

 

That's indeed strange. I thought the iterator would work (getting the correct row context for each historical por record). 

 

My last try would be to iterate of each row like this:

Test = MAXX('Historical_POR',
IF( 'Historical_POR'[POR] > 300000, "HIGH", "LOW")
)
 

Can you post a screenshot from the table view where you applied the formular for the calc. column?

Please also send a screenshot from the calc. of POR.

Anonymous
Not applicable

Laedays_0-1632378431916.png

 

300K POR = IF(('PMMT Historical Data'[POR]) > 300000,"Above","Below")

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.