The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
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
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
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
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
Thanks for reply.
I am not able to add "MAX" in ***, I see rollup and rollupgroups available.
Let me know if I am missing any syntax.
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
User | Count |
---|---|
24 | |
10 | |
8 | |
7 | |
6 |
User | Count |
---|---|
32 | |
12 | |
10 | |
10 | |
9 |