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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
Simon_Br
Helper I
Helper I

DAX lookupvalue whit max and min

Hello,

 

I'm a newbi whit Power BI and have a Problem whit the lookupvalue and max and min. 

 

In a tabele i have all Data, but i will from every DutyID only the min RevisedStart and the min RevisedEnd. See the Example below.

 

But i don't know, we i do this.

 

Can anyone help me with this?

 

IDDutyNoRevisedStartRevisedEndDutyID
ec0dfbbc-5b21-4041-be4c-8384ed19ba3eTest Simon 0118.07.2023 08:3418.07.2023 08:397e02c0db-ca2f-45fb-a0a4-72d775542d57
af572160-554c-41e1-9f22-8f27c8592809Test Simon 0118.07.2023 08:3918.07.2023 08:397e02c0db-ca2f-45fb-a0a4-72d775542d57
3ff15d8d-cc58-4502-83f7-d91e142a35a0Test Simon 0118.07.2023 08:5918.07.2023 08:597e02c0db-ca2f-45fb-a0a4-72d775542d57
8d633dd8-f2da-44a7-8731-650a35c7c7d0Test Simon 0118.07.2023 09:2918.07.2023 09:297e02c0db-ca2f-45fb-a0a4-72d775542d57
9010d71f-8728-4f64-b6e3-fbd121da3ae2Test Simon 0118.07.2023 12:1618.07.2023 12:217e02c0db-ca2f-45fb-a0a4-72d775542d57
65925214-ccd0-419a-989e-b9ec36c2cd04Test Simon 0218.07.2023 12:5918.07.2023 13:274af60dcf-2c1d-4610-957c-309d37631d27
689b4dbf-11f6-4e01-a193-b3934a5b4c2dTest Simon 0118.07.2023 13:0118.07.2023 13:217e02c0db-ca2f-45fb-a0a4-72d775542d57
a3b62c4c-db6a-41de-a9bc-ca21ecc04d8cTest Simon 0218.07.2023 13:2718.07.2023 13:274af60dcf-2c1d-4610-957c-309d37631d27
b2d112b1-c23b-4b4f-a6b5-ab58de2fdd59Test Simon 0118.07.2023 13:3418.07.2023 13:367e02c0db-ca2f-45fb-a0a4-72d775542d57
7079137a-61a8-4e33-b26c-2cbf947a2a4dTest Simon 0118.07.2023 13:3618.07.2023 14:117e02c0db-ca2f-45fb-a0a4-72d775542d57
19ef8cef-df0f-4fd2-aa60-9ac8de94ecaeTest Simon 0118.07.2023 16:4618.07.2023 16:567e02c0db-ca2f-45fb-a0a4-72d775542d57
4f2bf56a-2df2-4ee5-b0d6-b346cdbcbf0cTest Simon 0118.07.2023 16:5618.07.2023 16:567e02c0db-ca2f-45fb-a0a4-72d775542d57
01c1f29c-e2ca-4f20-95b2-29404bf64447Test Simon 0218.07.2023 17:0018.07.2023 17:004af60dcf-2c1d-4610-957c-309d37631d27
f7cbd181-02b0-43e5-958e-7c97b1e975eaTest Simon 0218.07.2023 17:3518.07.2023 17:354af60dcf-2c1d-4610-957c-309d37631d27
1cc97e5b-7785-4403-8d40-076df760f5a5Test Simon 0218.07.2023 17:4118.07.2023 17:434af60dcf-2c1d-4610-957c-309d37631d27
067e1ec9-cb7b-4f87-82b8-65774371edf7Test Simon 0118.07.2023 17:4518.07.2023 17:457e02c0db-ca2f-45fb-a0a4-72d775542d57
8e81a569-2bc5-4cba-8a17-b8ea6b6fcc74Test Simon 0218.07.2023 17:4618.07.2023 17:494af60dcf-2c1d-4610-957c-309d37631d27
8c5136f1-47bf-4c36-b4bf-5482e2715435Test Simon 0218.07.2023 17:4918.07.2023 17:514af60dcf-2c1d-4610-957c-309d37631d27
aa3ec9f3-2e7a-40fe-b91c-fb4bf07e1717Test Simon 0118.07.2023 18:0018.07.2023 18:007e02c0db-ca2f-45fb-a0a4-72d775542d57
85e409bf-59c4-4a6a-9244-7841df3ed13dTest Simon 0118.07.2023 18:0618.07.2023 18:167e02c0db-ca2f-45fb-a0a4-72d775542d57
f3796308-6658-45aa-8454-64a16d53dc59Test Simon 0218.07.2023 18:3018.07.2023 19:004af60dcf-2c1d-4610-957c-309d37631d27
c8f31621-458b-42a4-93e5-dca302028153Test Simon 0218.07.2023 19:4118.07.2023 19:464af60dcf-2c1d-4610-957c-309d37631d27
67565e8f-c1e5-4937-80bf-0e4659f222f8Test Simon 0218.07.2023 19:4918.07.2023 22:424af60dcf-2c1d-4610-957c-309d37631d27
b6d462f0-6e66-448e-a269-b804c2fbc446Test Simon 0218.07.2023 22:4218.07.2023 22:524af60dcf-2c1d-4610-957c-309d37631d27
ca2f5cfd-f0e5-4d04-a7d5-c635bf6a605aTest Simon 0218.07.2023 22:5218.07.2023 23:204af60dcf-2c1d-4610-957c-309d37631d27
     
     
     
Solution in a new tab:    
7e02c0db-ca2f-45fb-a0a4-72d775542d57Test Simon 0118.07.2023 08:3418.07.2023 18:16 
4af60dcf-2c1d-4610-957c-309d37631d27Test Simon 0218.07.2023 12:5918.07.2023 23:20 

 

 

Simon

 

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

Hi @Simon_Br ,

 

As far as I know, you can try EARLIEST  or LATEST function in table visual to get min or max RevisedStart and the RevisedEnd.

vrzhoumsft_0-1690774878251.png

Or you can try code as below to create measure or calculated column to get result.

min Revised Start = CALCULATE(MIN('Table'[RevisedStart]),ALLEXCEPT('Table','Table'[DutyID]))
Max Revised End = CALCULATE(MIN('Table'[RevisedEnd]),ALLEXCEPT('Table','Table'[DutyID]))

 

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

1 REPLY 1
v-rzhou-msft
Community Support
Community Support

Hi @Simon_Br ,

 

As far as I know, you can try EARLIEST  or LATEST function in table visual to get min or max RevisedStart and the RevisedEnd.

vrzhoumsft_0-1690774878251.png

Or you can try code as below to create measure or calculated column to get result.

min Revised Start = CALCULATE(MIN('Table'[RevisedStart]),ALLEXCEPT('Table','Table'[DutyID]))
Max Revised End = CALCULATE(MIN('Table'[RevisedEnd]),ALLEXCEPT('Table','Table'[DutyID]))

 

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.

 

Helpful resources

Announcements
September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.