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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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