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
Ed2563
Frequent Visitor

Cannot Clone Measure

If this has already been asked, I apologize.  I could not find a solution searching for either "Clone" or "Copy."

I am trying to create a copy of an existing measure that I have.  The Measure is a simple if...then.  See below.

Company A On-Time = 
IF(
     'table1'[Delta] >= -60 && 'table1'[Delta] <= -15,
     TRUE(),
     FALSE()
)

I am attempting to make a copy of this measure for Company B and change the last Delta criteria, but Power BI says it can't find my Delta measure.

It makes no sense, becasue the original works fine.

Any assistance will be greatly appreciated!

1 ACCEPTED SOLUTION
ryan_mayu
Super User
Super User

@Ed2563 

are you creating a column? You can't use current measure when you are creating a column

 

or you can try 

 

Company A On-Time = 
IF(
   max( 'table1'[Delta]) >= -60 &&max( 'table1'[Delta] )<= -15,
     TRUE(),
     FALSE()
)

 

if this does not work, pls provide some sample data and expected output





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

Proud to be a Super User!




View solution in original post

9 REPLIES 9
Deku
Super User
Super User

The a2c measure is red, meaning it is not in the model. Need to copy that one in too


Did I answer your question?
Please help by clicking the thumbs up button and mark my post as a solution!
ryan_mayu
Super User
Super User

@Ed2563 

are you creating a column? You can't use current measure when you are creating a column

 

or you can try 

 

Company A On-Time = 
IF(
   max( 'table1'[Delta]) >= -60 &&max( 'table1'[Delta] )<= -15,
     TRUE(),
     FALSE()
)

 

if this does not work, pls provide some sample data and expected output





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

Proud to be a Super User!




Thanks!!!  I tried your proposed solution using MAX (even though it wasn't in the original measure) and it worked!  Kudos and thank you again! 

you are welcome





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

Proud to be a Super User!




Thanks for the response.
No, I copied the code, selected "Create New Measure', and then pasted the clipboard contents.  See below:

On Time.pngNew Measure.pngPasted Measure.png

lbendlin
Super User
Super User

There is no mechanism for that.  You need to copy the measure code, then create a new measure, paste the code and modify it accordingly.

See the response above. I was trying to copy the contents of an existing measure into a new measure, not actually try to find a "clone" mechanism.

Deku
Super User
Super User

If [delta] is a measure, the convention is to not give the table name, so show that is a measure. I have to assume to new semantic model, if it does have a [delta] measure, then maybe it is not in 'table1'? Removing the table reference will make the location of the measure irrelevant 


Did I answer your question?
Please help by clicking the thumbs up button and mark my post as a solution!
Ed2563
Frequent Visitor

Thanks for the response.
Removing the table name didn't help.

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
Top Kudoed Authors