Skip to main content
cancel
Showing results for 
Search instead 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

Reply
Syndicate_Admin
Administrator
Administrator

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.

TuxCM_1-1646595746268.png

1 ACCEPTED SOLUTION
v-rzhou-msft
Community Support
Community Support

Hi @Syndicate_Admin ,

 

My Sample:

1.png 

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.

1.png

 

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.

 

View solution in original post

6 REPLIES 6
v-rzhou-msft
Community Support
Community Support

Hi @Syndicate_Admin ,

 

My Sample:

1.png 

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.

1.png

 

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.

 

AllisonKennedy
Super User
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?


Please @mention me in your reply if you want a response.

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.
If you found this post helpful, please give Kudos C

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?

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?

TuxCM_0-1646627098215.png

 

Thanks in advance.

Hi,

Does this measure work?

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

If it does not, then share the download link of your PBI file.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

@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)


Please @mention me in your reply if you want a response.

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.
If you found this post helpful, please give Kudos C

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

Helpful resources

Announcements
Fabric Community Conference

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.

February 2024 Update Carousel

Power BI Monthly Update - February 2024

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

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

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