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
Shruthi96
Helper III
Helper III

Latest date tickets fro duplicate entiries

Hi All,

 

I am working on the ticket analysis, where I get data on weekly basis.

Since, data is very huge in thousands on a weekly basis. I will not be able to pull the YTD data and upload in Power BI everytime.

 

I have uploaded till week 52 data in Power BI. Now, I want to upload week 1 data where some of the tickets created prior to Week 52 closed in Week1 and along with fresh tickets created and closed in week 1.

 

I want to remove duplicate ticket by looking at the latest date " Updated" column in the excel sheet.

Let me know if there is a solution to resolve. Thanks.

 

Input data in excel (sheet 1 Tab)

 

Number     Updated

Tkt1             12-04-2019

Tkt2             13-04-2019

Tkt3             04-04-2019

Tkt4             03-04-2019

Tkt2            15-09-2019

Tkt3            16-10-2019

 

Expected output data

Tkt1             12-04-2019

Tkt2            15-09-2019

Tkt3            16-10-2019

Tkt4             03-04-2019

5 REPLIES 5
Jimmy801
Community Champion
Community Champion

Hello @Shruthi96 

were you able to solve the problem with any reply given?

If so, please mark it as solution (to help other users find useful content and to acknowledge the work of users that helped you)
Kudoes are nice too

All the best

Jimmy

Jimmy801
Community Champion
Community Champion

Hello @Shruthi96 ,

 

I would suggest you to use power query to solve this issue, because with this technique you don't even get the not needed data in your data model. To achieve this, check out this example

let
	Source = #table
	(
		{"Number","Updated"},
		{
			{"Tkt1      ","43567"},	{"Tkt2      ","43568"},	{"Tkt3      ","43559"},	{"Tkt4      ","43558"},	{"Tkt2      ","43723"},	{"Tkt3      ","43754"}
		}
	),
    ToDate = Table.TransformColumns
	(
		Source,
		{{"Updated", each Date.From(Number.From(_))}}
	),
    Group = Table.Group
	(
		ToDate, {"Number"}, {{"MaxUpdated", each List.Max([Updated]), type date}}
	)
in
	Group

 

Copy paste this code to the advanced editor to see how the solution works. You can apply the code by pasting a part of it to your query or I can create a custom function for your, and show how to apply it.

If this post helps or solves your problem, please mark it as solution (to help other users find useful content and to acknowledge the work of users that helped you)
Kudoes are nice too

Have fun

Jimmy

az38
Community Champion
Community Champion

Hi @Shruthi96 

looking at your data sample, maybe simple calculated summarize table would be enough for you?

Table = SUMMARIZE('Table1';Table1[Number];"Upd";MAX(Table1[Updated]))

do not hesitate to give a kudo to useful posts and mark solutions as solution


do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

Thanks for reply. 

 

New Table = SUMMARIZE(Sheet1,Sheet1[Number],***(Sheet1[Updated].[Date]))

 

I am not able to add "MAX" in  ***, I see rollup and rollupgroups available. 

 

Let me know if I am missing any syntax. 

az38
Community Champion
Community Champion

@Shruthi96 

it's because you missed <name> parameter - name of your new aggregated column. "Updated" for example

https://docs.microsoft.com/en-us/dax/summarize-function-dax

 

do not hesitate to give a kudo to useful posts and mark solutions as solution


do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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