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
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
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.