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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
jimpatel
Post Patron
Post Patron

Dax logic

Hi,

 

Thanks for looking at my post.

 

I have table which having several rows of data. Is there any possibility to do the below logic please?

jimpatel_0-1705421115427.png

 

1. With table below, I have given one example with specific number in column 1 which is ordernumber in this instance. I would like to do

  a. Check column 3 against same number in column 1 and look for latest date in column 6. 

The idea is instead of several rows, i am trying to condense to one row for 0030 and one row for 0020 and so on.

 

In this example what i am expecting is  to show very first row as the result and rest of them can be deleted for 0030. For 0020 same as well.

 

Any idea please?

1 ACCEPTED SOLUTION

hi, @jimpatel 

you can download .pbix file click HERE 

 

version

Dangar332_0-1705482468062.png

 

View solution in original post

11 REPLIES 11
jimpatel
Post Patron
Post Patron

Hi

 

Thanks a lot for your reply 

 

Is it possible to share BI version of above please? For some reason the above formula does not work for me and i can check with your file where i went wrong please

 

thanks a lot 

much appreciated

hi, @jimpatel 

you can download .pbix file click HERE 

 

version

Dangar332_0-1705482468062.png

 

Perfect

 

Thanks a lot for your help 

 

Appreciated

jimpatel
Post Patron
Post Patron

Thanks a lot for your reply.

 

In this instance i am expecting only highlighted row to show please as those are the latest date for respective operation and order number

 

jimpatel_0-1705427712271.png

 

Thanks a lot

hi, @jimpatel 

try below measure

measure =
calculate(
   max(table[date]),
   allexcept(table,table[ordernumber],table[operation])
)

Thanks a lot for your reply.  Unfortunately, this is still showing duplicates

 

jimpatel_0-1705430157807.png

 

 

Thanks

 

 

hi, @jimpatel  

 

from above your data

Dangar332_1-1705431089858.png

 

 

try below measure

var a = 
CALCULATE(MAX(jim[date]),ALLEXCEPT(jim,jim[order nu],jim[opeartion])) 
RETURN
MAXX( FILTER(jim,jim[date]=a),jim[date])

 

Dangar332_0-1705431075653.png

 

hi, @jimpatel 

provide real time data with removing confidential information

jimpatel
Post Patron
Post Patron

Thanks a lot for your reply. In this instance i am getting 16 January 2024 as the answer. But i am looking for 16th jan for 0030 and 9th jan for 0020 and so on please

 

Thanks a lot and much appreciated

hi, @jimpatel 

 copy and paste your above data here in table form to look over

Greg_Deckler
Community Champion
Community Champion

@jimpatel If you put Column1 and Column3 in a table visual, then just use a measure for MAX('Table',[Column6]).



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.