cancel
Showing results for
Did you mean:

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a \$100 discount. Register Now

Get the First Value in My Table and Get It in a Measure

Please your support I am trying to get the value of the first day in this table you only have 15 days always and you want to obtain in a measure the value always of the first I realize it as follows:

ValMin =
CALCULATE(SUMX(ALLSELECTED(Quiebre_8S[Date]),[Prom Valued L2W]),Quiebre_8S[Ranking]=1)

Thank you very much in advance.

1 ACCEPTED SOLUTION
Community Support

My Sample:

Try this code to achieve your goal.

``````ValMin =
CALCULATE (
SUM ( Quiebre_8S[Prom Valued L2W] ),
FILTER ( ALLEXCEPT ( Quiebre_8S, Quiebre_8S[Type] ), Quiebre_8S[Ranking] = 1 )
)``````

Result is as below.

Best Regards,
Rico Zhou

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

6 REPLIES 6
Community Support

My Sample:

Try this code to achieve your goal.

``````ValMin =
CALCULATE (
SUM ( Quiebre_8S[Prom Valued L2W] ),
FILTER ( ALLEXCEPT ( Quiebre_8S, Quiebre_8S[Type] ), Quiebre_8S[Ranking] = 1 )
)``````

Result is as below.

Best Regards,
Rico Zhou

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Super User

@Tux-CM It looks like you have what you describe. Can you please explain further what is not working so we can help?

Copying DAX from this post? Click here for a hack to quickly replace it with your own table names

Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.

I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com

hello @Syndicate_Admin the value of 12,727,467 should go out in the entire VALMIN column but if you realize it only comes out for the first 3, do you know why that is happening?

Frequent Visitor

Hi @AllisonKennedy , the value of 12,727,467 should appear in the entire VALMIN column but if you realize it only appears for the first 3, do you know why that is happening?

Super User

Hi,

Does this measure work?

Measure = MINX(ALL(Calendar[Fecha]),[Prom Valued L2W])

Regards,
Ashish Mathur
http://www.ashishmathur.com
Super User

@Tux-CM Sorry I didn't see that. Is Ranking a calculated column? What's the DAX for it?

Try:

ValMin = CALCULATE([Prom Valued L2W]),ALLSELECTED(), Quiebre_8S[Ranking]=1)

Copying DAX from this post? Click here for a hack to quickly replace it with your own table names

Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.

I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com

Announcements

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

Power BI Monthly Update - February 2024

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

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.

Top Solution Authors
Top Kudoed Authors