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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
mafioso
Helper II
Helper II

Power BI Measure Calculation not working properly

I have this measure: 

Test = 
CALCULATE(
	[M_EBIT Prod_AfA];
    FILTER(
		ALL('Master'[Date]);
		ISONORAFTER('Master'[Date]; MIN('Master'[Date]); DESC)
	)
)

 

I know that MIN causes the problem because I get the min value but there are TWO values in the table. Is it possible to get both? I want to filter by date and get all values. Any help would be appreciated!

2 REPLIES 2
v-juanli-msft
Community Support
Community Support

Hi @mafioso

I reproduce your issue with my data, could you point out what result you want?

Measure =
CALCULATE (
    SUM ( Sheet1[number] ),
    FILTER (
        ALL ( Sheet1 ),
        ISONORAFTER ( Sheet1[number], MIN ( Sheet1[number] ), ASC )
    )
)

5.png 

 

Best Regards

Maggie

TomMartens
Super User
Super User

Hey,

 

I'm not totally sure if I totally understand your requirement.

 

A measure always returns scalar value, meaning just one value.

 

I'm not sure what you mean by "there are two values in the table"

  • two rows in your fact table with different values for the [M_EBIT Prod_Afa] on the MIN date

and I'm also not sure what you want as a result.

 

Regards

Tom



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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
Top Kudoed Authors