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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! 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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.