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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
austinb97
Regular Visitor

Measure Incorrectly Passing Value to New Measure

Hi, I am having problems feeding the result of "Measure 1" below into "Measure 2". I do get the correct result of 8921 from "Measure 1", but "Measure 2" is not reading that number correctly. Notice in "Measure 3" I hardcode in the 8921 and I get the correct result, but when I reference the measure I get the incorrect result. I'm thinking it either has to do with my variable or the ALLSELECTED portion of "Measure 1". I am using a slicer to pick an "AssetName" then doing a sum of "Available MW". Any suggestions on how to fix this? 

 

Measure 1 (Gets correct result)

3.png

 

 

Measure 2 (Produces Incorrect Result)

1.png

 

Measure 3 (Produces Correct Result)

austinb97_0-1628865915838.png

 

1 ACCEPTED SOLUTION
v-xulin-mstf
Community Support
Community Support

Hi @austinb97,

 

Without your data structure, I can't determine the exact filtering conditions, but in any case, you have to make sure the filtering conditions for measure1 and measure2 are the same.

Try measure as:

MINX(
     FILTER(ALLEXCEPT(MERITORDER,MERITORDER[DATE]),MERITORDER[CUMULATIVE AVAILABLE MW]>=[MEASURE1]),
     MERITORDER[PRICE]
)

If you still have some question, please provide the pbix file after removing sensitive information.

 

Best Regards,

Link

 

Is that the answer you're looking for? If this post helps, then please consider Accept it as the solution. Really appreciate!

View solution in original post

3 REPLIES 3
v-xulin-mstf
Community Support
Community Support

Hi @austinb97,

 

Without your data structure, I can't determine the exact filtering conditions, but in any case, you have to make sure the filtering conditions for measure1 and measure2 are the same.

Try measure as:

MINX(
     FILTER(ALLEXCEPT(MERITORDER,MERITORDER[DATE]),MERITORDER[CUMULATIVE AVAILABLE MW]>=[MEASURE1]),
     MERITORDER[PRICE]
)

If you still have some question, please provide the pbix file after removing sensitive information.

 

Best Regards,

Link

 

Is that the answer you're looking for? If this post helps, then please consider Accept it as the solution. Really appreciate!

amitchandak
Super User
Super User

@austinb97 , You are trying to use measure in a filter then you have to force a context using summarize or values

 

 

example

sumx(filter(values(Table[ID]), [Measure] > max(Table1[Col1])),[Measure])

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

Thanks, however I'm not sure how to apply that to my measure, any suggestions on how to rewrite it? 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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