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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
V-pazhen-msft
Community Support
Community Support

@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.
vaishnaviudan
Resolver I
Resolver I

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 @vaishnaviudan 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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.