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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
kennylch
Helper I
Helper I

new column based on measure value

Below is the sample data extracted from my matrix table. 

 

The measure column created using this. it gives the correct value as expected as well as conditional formatting with right colour shade. 

Measure = (sum(KFACTOR[Net Qty])-[Req Qty])/[Req Qty]

 

I try to create a column base on the Measure value. 

Healthy Level = if([Measure]<0,"Unhealthy Level",IF([Measure]<5,"Healthy Level","Above Healthy"))

 

There isnt any issue if PART column not repeating. Eg 'PART 201371605. The measure gives 2 different value (which is correct). But the heathy level column gives incorrect result as it only based on the measure value in a one of the record and apply the same to both row.

 

How to i create the Heathy Level column correctly to display the correct result 

 

 

 

Untitled.png

3 REPLIES 3
rajendraongole1
Super User
Super User

Hi @kennylch - you can create a measure instead of calculated column 

ex: as per data

Healthy Level =
IF(
[Measure] < 0,
"Unhealthy Level",
IF(
[Measure] < 5,
"Healthy Level",
"Above Healthy"
)
)

Hope it helps





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

Proud to be a Super User!





Hi. It doesnt help as this invole 2 table.. Once i insert a measure like this. My other measure became blank

Hi @kennylch - you can create measure logic in calculated column, using related function to the data.

Measure_Column =
([Net Qty] - RELATED(OtherTable[Req Qty])) / RELATED(OtherTable[Req Qty])

 

and then use the create calculated column provided as below:

Healthy Level =
IF(
[Measure_Column] < 0,
"Unhealthy Level",
IF(
[Measure_Column] < 5,
"Healthy Level",
"Above Healthy"
)
)

 

 

hope it helps

 





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

Proud to be a Super User!





Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors