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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

Calculated column filter rows based on row values

I am trying to calculate a calutated column which goes like this

 

(row - min(row))/(max(row) - min(row))

 

It works perfectly

 

What I want is that I have another column called number with number 1, 2, 3

 

I want to populate above thing with number as the filter such that for rows with number 1

min(row) is minimum value for row where number is 1 and so on

 

Thank you for any help on this!

2 REPLIES 2
atul9063
Helper III
Helper III

1) Instead of creating calculated column, create measures to fo such calculations (row - min(row))/(max(row) - min(row))

 

2) You can use below measures to filter data

 

selectedMeasure = SELECTEDVALUE(Table[ColumnName])

 

MetricFIlter = SWITCH( TRUE(),
[selectedMeasure]="1", [DailyActiveUsers],
[selectedMeasure] ="2", [DailyCallingActiveUsers]

BLANK())

Anonymous
Not applicable

I do not understnad two things,

 

first

 

a measure to calculate (row- row(min))/(row(max) - row(min))  in a measure how to select row when I use CALCULATE it gives me an error saying I need to use aggregation?

 

Second

 

in the metric filter what is [DailyActiveUsers] column?

 

I appreciate your help!

 

Thank You.

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors