duplicate
9 TopicsPBI Report Builder - removing duplicate values in parameter dropdown
I'm currently working through building a paginated report with PBI Report Builder, but a small issue came up. One of my parameters is called Spend Year. Currently, for the sake of working with a faster loading file, I filtered this down to only include the year 2023. However, the issue with this is that the parameter dropdown is displaying multiple options for 2023. I believe it's displaying a 2023 for each row in the dataset that contains one. Having multiple options for the same thing just isn't practical, so I've been looking for a way to have the parameter dropdown display distinct options. I managed to find this article: https://www.c-sharpcorner.com/article/remove-duplicate-filter-values-from-ssrs-parameter-drop-down/. While this matches my situation, the VB code that he writes is for String values. I'm working with integers. I tried my best to adapt his code to work for integers (you can find the code below), but after following through everything, my Spend Year parameter is now greyed out with no selectable values. I was sure to configure the available values as detailed in the article. Does anyone happen to have any idea how I should go about this? If it's useful to know, my data was pulled via a DAX query. Thank you in advance! My version of the code: Public Shared Function RemoveDuplicates(parameter As Parameter) As Integer() Dim items As Integer() = parameter.Value Array.Sort(items) Dim k As Integer = 0 For i As Integer = 0 To items.Length - 1 If i > 0 AndAlso items(i) = items(i - 1) Then Continue For End If items(k) = items(i) k += 1 Next Dim unique As Integer() = New Integer(k - 1) {} Array.Copy(items, 0, unique, 0, k) Return unique End Function4KViews0likes3CommentsDAX - Rank duplicates in sequence
Hi experts group, I have searched the forum, but can't find the solution on my issue. I need your help to write DAX code on how to rank the duplicates in sequence. This is the data and I'd like to achieve the result as below in Count Duplicate column Type Count duplicate a 0 a 1 b 0 c 0 b 1 c 1 c 2 a 2 The aim is to keep the 1st duplicates and remove the rest of duplicates using filter. Thank you.Solved743Views0likes2CommentsCalculation Involving Duplicates
Without deleting duplicates, how do I write a formula to calculate the total scrap percentage by date? Scrap% = (Machine Scrap/(Machine Scrap + Good Quantity)) * 100 Production Day Machine Scrap Good Quantity 06/01/2023 12:00:00 AM 33103 734164 06/01/2023 12:00:00 AM 33103 734164 06/01/2023 12:00:00 AM 33103 734164 06/01/2023 12:00:00 AM 33103 734164 06/01/2023 12:00:00 AM 33103 734164 06/01/2023 12:00:00 AM 33103 734164 06/01/2023 12:00:00 AM 33103 734164 06/01/2023 12:00:00 AM 33103 734164 06/01/2023 12:00:00 AM 33103 734164 06/01/2023 12:00:00 AM 33103 734164 06/01/2023 12:00:00 AM 33103 734164 06/01/2023 12:00:00 AM 29452 744589 06/01/2023 12:00:00 AM 29452 744589 06/01/2023 12:00:00 AM 29452 744589 06/01/2023 12:00:00 AM 29452 744589 06/01/2023 12:00:00 AM 29452 744589 06/01/2023 12:00:00 AM 29452 744589 06/01/2023 12:00:00 AM 29452 744589 06/01/2023 12:00:00 AM 29452 744589 06/01/2023 12:00:00 AM 29452 744589 06/01/2023 12:00:00 AM 29452 7445891.8KViews0likes9CommentsFind duplicates between "date selected" and "date selected" - 30 days
Hi! 🙂 I have date filters (slicer) for year, month and day in a model that uses a table with [ID] and [Date] I want to show the duplicates between the "Date selected" and ("Date selected" -30 days) This is the table: If i select "December 1st, 2022" it should only show these: Thank you!1.1KViews0likes3CommentsUnion two tables and no duplicate the rows when date updated
Hi All, I am new to PowerBi, I need your help please. I have two tables (TABLE1, TABLE2) that i want to union: TABLE 1 Client PartNo Titre TYPE Start Date projected End Date projected Real End Date Projet Name ClientXX AAAA Tool Prove NPI 09/03/2021 22/03/2021 21 mars 21 FA1 ClientXX AAAA Inspection NPI 09/05/2021 22/05/2021 FA1 ClientYY BBBB Methodes REV 09/04/2021 22/04/2021 FA1 TABLE 2 Client PartNo Titre TYPE Start Date projected End Date projected Real End Date Projet Name ClientXX AAAA Inspection NPI 09/05/2021 22/05/2021 23 mai 21 FA1 ClientYY BBBB Methodes REV 09/04/2021 22/04/2021 FA1 ClientXX CCCC Inspection NPI 10/04/2021 12/04/2021 FA2 The result I want after union (TABLE1; TABLE2) is like below: Client PartNo Titre TYPE Start Date projected End Date projected Real End Date Projet Name ClientXX AAAA Tool Prove NPI 09/03/2021 22/03/2021 21 mars 21 FA1 ClientXX AAAA Inspection NPI 09/05/2021 22/05/2021 23 mai 21 FA1 ClientYY BBBB Methodes REV 09/04/2021 22/04/2021 FA1 ClientXX CCCC Inspection NPI 10/04/2021 12/04/2021 FA2 But with DAX, i obtain the table below which keeps the row of TABLE1 and the row with date updated in column "Real End Date" of TABLE2 instead of keeping just row of TABLE2. Client PartNo Titre TYPE Start Date projected End Date projected Real End Date Projet Name ClientXX AAAA Tool Prove NPI 09/03/2021 22/03/2021 21 mars 21 FA1 ClientXX AAAA Inspection NPI 09/05/2021 22/05/2021 FA1 ClientXX AAAA Inspection NPI 09/05/2021 22/05/2021 23 mai 21 FA1 ClientYY BBBB Methodes REV 09/04/2021 22/04/2021 FA1 ClientXX CCCC Inspection NPI 10/04/2021 12/04/2021 FA2 Table = Var UnionTable=UNION(SELECTCOLUMNS('TABLE1';"Client";'TABLE1'[Client];"PartNo";"TABLE1"[PartNo];"Titre";'TABLE1'[Titre];"TYPE";'TABLE1'[TYPE];"Start Date projected";'TABLE1'[StartDate];"End Date projected";'TABLE1'[EndDate];"Real End Date";'TABLE1'[RealEndDate];"Projet Name";'TABLE1'[ProjName]);SELECTCOLUMNS('TABLE2';"Client";'TABLE2'[Client];"PartNo";"TABLE2"[PartNo];"Titre";'TABLE2'[Titre];"TYPE";'TABLE2'[TYPE];"Start Date projected";'TABLE2'[StartDate];"End Date projected";'TABLE2'[EndDate];"Real End Date";'TABLE2'[RealEndDate];"Projet Name";'TABLE2'[ProjName])) Return Groupby(UnionTable;[Client];[PartNo];[Titre];[TYPE];[Start Date projected];[End Date projected];[Real End Date];[Projet Name]) Anyone knows how to fix this problem ? Thanks!Solved6.6KViews0likes5CommentsSummarize Table and Remove Duplicates
I am working with a table of data that I am trying to summarize. For development I am using New Table and Summarizing. I get the first level of summary to work but my table ends up with some duplicate values. Ultimately I want to count the rows that remain after summarizing and removing the duplicate. My Row Count should be 1 for every row. The other option would be to replace the values that are greater than "1" with "1". Any thoughts how I can remove these duplicates without having to setup the table in Power Query? Operation Count by Day = SUMMARIZE('_AELaborEdit - Clock In Date', '_AELaborEdit - Clock In Date'[ClockInDate], '_AELaborEdit - Clock In Date'[Job], '_AELaborEdit - Clock In Date'[Operation], "Operations Count", COUNTROWS('_AELaborEdit - Clock In Date') )Solved5.4KViews0likes5CommentsHow to copy an existing folder together with associated users and their permissions?
Hi, I have a requirement to make a new folder which has a new name (doh!), but keep all the users from another folder and their respective roles/permissions. There are over 80 users in the old folder and it seems logical that copying the old folder with its users and then renaming it is a simpler approach. I tried finding a "copy/paste" type of command in the web interface, to no avail. Could anyone kindly advise how can this be accomplished? Is this potentially a PowerShell script kind of job? Cheers,1.6KViews0likes2Comments