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
Anonymous
Not applicable

final value in a dataset

Hello,
In the dataset below I would like to get the final value which in this dataset is 1.05 using DAX. How can I do this please?

Thank you

Dataset:

heights
---------
1.1
0.5
9.3
1.05

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

Hi , @Anonymous 

If I understand your requirement correctly that you want to get the final value of  the table in  data view,rigtht?

5.png

 

If it is , it is suggest  to create a index column,then  create formula as below:

final value = CALCULATE(SUM('Table'[heights]),FILTER('Table','Table'[Index]=MAX('Table'[Index])))

The result will show as below:

6.png

 

 

Best Regards,
Community Support Team _ Eason

 

View solution in original post

4 REPLIES 4
v-easonf-msft
Community Support
Community Support

Hi , @Anonymous 

If I understand your requirement correctly that you want to get the final value of  the table in  data view,rigtht?

5.png

 

If it is , it is suggest  to create a index column,then  create formula as below:

final value = CALCULATE(SUM('Table'[heights]),FILTER('Table','Table'[Index]=MAX('Table'[Index])))

The result will show as below:

6.png

 

 

Best Regards,
Community Support Team _ Eason

 

amitchandak
Super User
Super User

@Anonymous , it can be max, lastnonblank value etc

Max(Table[A])

Anonymous
Not applicable

This depends greatly on which way your dataset is oriented at that very moment. maybe you can show me your usecase or some more info about your dataset. This way we can find a fitting solution. 

\

Pragati11
Super User
Super User

Hi @Anonymous ,

 

Does your dataste have just this one column or it has someother columns?

Can you paste screesnhot of your sample data please?

 

DAX is written using some kind of logic which I don't understand in your case.

 

Thanks,

Pragati

 

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

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.