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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
jayendra
Frequent Visitor

how to get the latest updated key ?

Hi

 

I have 2 tables 1 is get issues and 2 is project in getissues tables contains updated,issuekey and substream in project table contains project and agilekeys column. i want to get the latest updated issuekey.But the table should contains substream,project and agilekeys.Is their any DAX formula or Power query function Please ASAP.

 

Regards

jayendra

9 REPLIES 9
Anonymous
Not applicable

Hi @jayendra,

 

Can you please share some sample data to test? If you have trouble to share the data, please provide the table structure to analysis.

 

Regards,

Xiaoxin Sheng

Hi

 

Here i am providing the data can you see that in issue key some unique names are their. Actually my requirment is in Project Key column multiple keys is their and substream also like that,But in Issuekey Column  in Project 1 has 3 different keys are their i want the lastest updated key In issue key column AACEMTEFB-53 is the lastest key like i want the latest updated issuekeys.

 

Project Key                             SubStream                      Issuekey

===========                  =========                  ==============

Project1                                AA:Analytics                      AACEMFLXRP-9

Project1                                AA:Analytics                      AACEMTEFB-53

Project1                                AA:Analytics                      AACEMTEFB-9

Project2                                AA:NetAct                         AAIDEAUAT-437

Project2                                AA:NetAct                         ADIFNADRUP-1 

Project2                                MN:TC-VM                        AFRIMAXNIB-9

Project2                                MN:AMS                           AMSKPGWFO-9

Project2                                AMS:WEBAPP                   AMSKPGWTHR-9

Project3                                MN:COSS                          AMSKPGWTHR-29  

Project4                                MN:SDM                          AMSPAS-99

Project4                                AA:CloudIOT                   AMSWIFI-9

Project5                                MN:SDM                         AOCFEECZEC-9

Project5                               AA:CloudIOT                    AOCFEECZEC-78           

Project6                              AMS:WEBAPP                      ATTHOT-1

 

 

 

OutPut

 

Project Key                             SubStream                      Issuekey

===========                  =========                  ==============

Project1                                AA:Analytics                      AACEMTEFB-53

Project2                                AA:NetAct                         AAIDEAUAT-437

Project2                                MN:TC-VM                        AFRIMAXNIB-9

Project2                                AMS:WEBAPP                   AMSKPGWTHR-9

 

Like wise i have to get the Substream Column  should be unique keys  and Issuekey Column should be Unique and it should be latest modified key.

 

jayendra

kaushikd
Resolver II
Resolver II

@jayendra

Could you please show the data what you have and manually show what should be your output.

Hi

 

Here i am providing the data can you see that in issue key some unique names are their. Actually my requirment is in Project Key column multiple keys is their and substream also like that,But in Issuekey Column  in Project 1 has 3 different keys are their i want the lastest updated key In issue key column AACEMTEFB-53 is the lastest key like i want the latest updated issuekeys.

 

Project Key                             SubStream                      Issuekey

===========                  =========                  ==============

Project1                                AA:Analytics                      AACEMFLXRP-9

Project1                                AA:Analytics                      AACEMTEFB-53

Project1                                AA:Analytics                      AACEMTEFB-9

Project2                                AA:NetAct                         AAIDEAUAT-437

Project2                                AA:NetAct                         ADIFNADRUP-1 

Project2                                MN:TC-VM                        AFRIMAXNIB-9

Project2                                MN:AMS                           AMSKPGWFO-9

Project2                                AMS:WEBAPP                   AMSKPGWTHR-9

Project3                                MN:COSS                          AMSKPGWTHR-29  

Project4                                MNSmiley FrustratedDM                          AMSPAS-99

Project4                                AA:CloudIOT                   AMSWIFI-9

Project5                                MNSmiley FrustratedDM                         AOCFEECZEC-9

Project5                               AA:CloudIOT                    AOCFEECZEC-78           

Project6                              AMS:WEBAPP                      ATTHOT-1

 

 

 

OutPut

 

Project Key                             SubStream                      Issuekey

===========                  =========                  ==============

Project1                                AA:Analytics                      AACEMTEFB-53

Project2                                AA:NetAct                         AAIDEAUAT-437

Project2                                MN:TC-VM                        AFRIMAXNIB-9

Project2                                AMS:WEBAPP                   AMSKPGWTHR-9

 

Like wise i have to get the Substream Column  should be unique keys  and Issuekey Column should be Unique and it should be latest modified key.

 

jayendra

Anonymous
Not applicable

Hi @jayendra,

 

You can take a look at below sample to achieve your requirement:

 

1. Add a calculated column to original table to store the update id.

ID = RIGHT([Issuekey],LEN([Issuekey])-FIND("-",[Issuekey],,0)) 

9.PNG

 

2. Use ID to summary table and get the last update records.

Table = 
var temp=
ADDCOLUMNS(
    ADDCOLUMNS(
        SUMMARIZE(Test,[SubStream],"IssueID",MAX(Test[ID])),
        "IssueKey",LOOKUPVALUE(Test[Issuekey],[SubStream],[SubStream],[ID],[IssueID])),
    "Project Key",LOOKUPVALUE(Test[Project Key],[SubStream],[SubStream],Test[Issuekey],[IssueKey])
    )
return
SELECTCOLUMNS(temp,"Project Key",[Project Key],"SubStream",[SubStream],"IssueKey",[IssueKey])

10.PNG

 

Regards,

Xiaoxin Sheng

HI

 

 

I  am only getting Substream values but not getting ProjectKey and Issuekey,Colud you help,how to resolve.If i place the ID column i am getting error

 

UniqueColumns err.png

 

If i remove the ID column i am getting the Substream values please see the below screen shot.


UniqueColumns.png

 

Regards

jayendra

Anonymous
Not applicable

Hi @jayendra,

 

Did you have any progress of this issue?

 

Regards,

Xiaoxin Sheng

Anonymous
Not applicable

HI @jayendra.

 

Can you please share more detail about your scenario?(screenshots, formula...)

BTW, can you confirm id column is number type? if it store the text value, the formula will got the error.

 

Regards,

XiaoxinSheng

BI eror.png

 

Lets look in this pic here substream is column AMS:WebAPP is new key like we have so many updated keys is their.we have to get the latest updated key in another table.IN get issues table i have updated column is their with the help of that one how can i get the latest updated key column.

 

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.