User Profile
andrew260z
Frequent Visitor
Joined 6 years ago
User Widgets
Contributions
Unpivot multiple columns that may have nulls
I've been trying to figure out way to unpivot data where an issue / priority and status is split on a delimiter. Each item may have 0..n issues attached to it. Thats been represented in a single column making it hard to determine how many sets of columns there may be. So if 1 item has 3 issues then we will end up with 3 sets of 3 columns with values in them. I've tried to follow https://kohera.be/power-bi/how-to-unpivot-twice/ but end up unpivoting and pivoting back to the same data. The end goal is to end up with a tabular list where an item will have issue the issue listed. Would have no rows if issues did not exist. sample set of data (raw) Item Name Issue(s) C-13501-A1-MH-001 DP01/P1/Closed Out C-13501-N1-U-001 C-13501-N2-D-001 DP01/P1/Closed Out;DP02/P1/Closed Out;DP03/P1/Closed Out C-13501-N3-D-001 C-13501-N4-U-001 DP03/P1/Closed Out Goal data of what one would look like unpivoted. C-13501-N2-D-001 DP01 P1 Closed Out C-13501-N2-D-001 DP02 P1 Closed Out C-13501-N2-D-001 DP03 P1 Closed OutSolved1.4KViews0likes3CommentsShow non summarised cost
Hi all, been trying to create either a group by or a distinct sum to represent savings for some data Example of the data below - the sum of the final cost is 21,000 but i need to also show the 7,000 (as the consolidatedob coumn would be distinct) and the actual amount paid was 7,000; I've tried a few different ways to do this but it keeps showing me the summarised sum FinalCostSum = SUMX(Distinct('TrackingList Archive'[ConsolidatedOB]),SUM('TrackingList Archive'[Final_Cost])) Should I be doing this with a group by perhaps and linking back to the value CsondolidatedOB?Solved691Views0likes3CommentsMeasure to calculate unlinked amount between 2 tables
Hi Community, just trying to calculate the number of items of a table that are not related but struggling with the concept Tables are 1 to Many [RequestList] 1 ----- * [Candidates] [ID] -------- [RequestID] RequestList has a Status like: Approved Pending Closed What I'm looking to show is of the Approved the number of unlinked Candidates meaning that the request has not had any candidates assigned. And vice versa so there are 2 measures one to show the number linked and other unlinked. Have a rather convuluted way I'm doing it with calculated columns and a distinctcount on the candidates table at the moment but its giving me invalid values. Currently doing where StatusID <> 7 - is recruited: [Candidates] - Measure OpenPositions = CALCULATE(DISTINCTCOUNT(Candidates[DemandID]),Candidates[StatusID]<>7) Then a calculated column in [Recruited] CandidateStatus = LASTNONBLANK(SELECTCOLUMNS(RELATEDTABLE(Candidates),"OpenPos",Candidates[CandidateOpenPos]=1),1) To get a True or False - and i'm doing another calculated column to get the count if True or Not.619Views0likes1CommentRe: Encuentre la primera y la última entrada para una persona en una fecha determinada
Muchas gracias que los trabajos se ajustan para MINUTE y luego divido por 60 para obtener un valor más preciso. DifferenceMin á SUMX(VALUES('0801211'[Name]),DATEDIFF(MIN('0801211'[Datetime]),MAX('0801211'[Datetime]),MINUTE)) ¿Hay de todos modos para mostrar una tabla visual con sólo la primera y última fila de esa persona de ese día para que los gerentes verifiquen el número en contra?305Views0likes0CommentsEncuentre la primera y la última entrada para una persona en una fecha determinada
Hola He estado revisando algunas otras publicaciones del foro y encontré que este es algo similar, pero no es exactamente lo que estoy tratando de lograr. (https://community.powerbi.com/t5/Desktop/Find-value-for-first-and-last-date-by-person/m-p/61984#M25505) Mis datos son esencialmente acceder a los datos de registro Fecha Hora Nombre 04/01/2021 08:00 AM Persona1 04/01/2021 08:50 AM Persona1 04/01/2021 4:30 PM Persona1 04/01/2021 7:30 AM Persona2 04/01/2021 10:30 AM Persona2 04/01/2021 11:30 AM Persona2 04/01/2021 4:30 PM Persona2 Con el objetivo de obtener el primer y último registro de acceso de la fecha para cada persona en el registro; Mi fecha y hora se divide en dos columnas, pero tal vez necesitan combinarse para que esto funcione, he creado una columna calculada FirstDate y LastDate, pero lo que necesito es un FirstDateandTIme y LastDateandTIme por fecha y encontrar el máximo y min de los de la persona. La última pieza del rompecabezas sería calcular realmente la diferencia de tiempo y obtener una lectura en horas para esa persona en particular para el día. Estoy un poco fuera de mi profundidad aquí con el DAX requerido para hacerlo realidad sin embargo. Cualquier ayuda sería muy apreciada.Solved305Views0likes2CommentsRe: Find the first and last entry for a person on a particular date
Thank you very much that works adjust for MINUTE and then I divide by 60 to get an more accurate value. DifferenceMin = SUMX(VALUES('0801211'[Name]),DATEDIFF(MIN('0801211'[Datetime]),MAX('0801211'[Datetime]),MINUTE)) Is there anyway to show a table visual with only the first and last row of that person of that day for the managers to verify the number against?1.1KViews0likes0CommentsFind the first and last entry for a person on a particular date
Hi, I've been checking some other forum posts and found this one to be kind of similar but not quite what I'm trying to achieve. (https://community.powerbi.com/t5/Desktop/Find-value-for-first-and-last-date-by-person/m-p/61984#M25505) My data is essentially access log data DATE TIME NAME 04/01/2021 08:00 AM Person1 04/01/2021 08:50 AM Person1 04/01/2021 4:30 PM Person1 04/01/2021 7:30 AM Person2 04/01/2021 10:30 AM Person2 04/01/2021 11:30 AM Person2 04/01/2021 4:30 PM Person2 With the objective of getting the first and last access log of the date for each person on the log; My date and time is split into two columns but perhaps they need to be combined to get this to work, I've created a FirstDate and LastDate calculated column but what I need is a FirstDateandTIme and LastDateandTIme per date and find the max and min of those for the person. The last piece of the puzzle would be to actually calculate the time difference and get an reading in hours for that particular person for the day. I'm a bit out of my depth here with the DAX required to make it happen however. Any help would be greatly appreciated.Solved1.2KViews0likes2CommentsFalta la columna SPO de Power Query
Tengo un campo de texto vainilla recto en mi lista de SPO que estoy tratando de importar su llamado "DisplayName" no hay evidencia de ello en la consulta de energía en absoluto. No es una columna calculada o cualquier cosa que simplemente contiene texto. Todo lo que se me ocurre es que es el uso de un nombre de columna que PowerBI no puede utilizar? Idealmente no quiero cambiarle el nombre (el código Powerapps tendrá que cambiar) pero supongo que si me veo obligado a hacerlo. Editar; algunas capturas de pantalla para mayor claridad, la columna 'DisplayName' no Editar 2 - He vuelto a comprobar el nombre de la columna de lista en SharePoint y se nombra correctamente, se vuelve a cargar en Powerquery, pero no puede encontrarlo. Me di cuenta de m consulta maneja la nomenclatura de ID - ID.1355Views0likes2Comments
Data Privacy
Microsoft Fabric Community and Privacy
To learn more about how we manage your data, please review the Microsoft Fabric Community Data Privacy guide.