March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hello Everyone,
I've tried my best to find the best solution for my issue on the forums, but got into a dead end, so im asking for help from scratch. instead of modifying my attempts, here it goes:
I have a defect table and intend to filter my query or create a new table acording the following criteria:
First date of defect, no duplicate batch#, Process = Tinto , State <> Aprobado
Table for reference:
Thank You
Solved! Go to Solution.
Aha, I think I follow now
Table 3 = VAR T1 = SUMMARIZE('Table','Table'[BATCH#],"First Date" , MIN('Table'[DATE])) VAR T2 = FILTER( NATURALINNERJOIN('Table',T1),[STATE]<> "Aprobado" && [PROCESS]="Tinto" && [First Date] = [DATE]) RETURN T2
Im not sure if I fully understand your needs but this is my interpretation. Let me know how close I am.
Table 2 = var T1 = FILTER( 'Table', 'Table'[PROCESS]="Tinto" && 'Table'[STATE] <> "Aprobado" ) var T2 = SUMMARIZE( T1, 'Table'[BATCH#] , "Max Date" , MAX('Table'[DATE])) return NATURALINNERJOIN(T1,T2)
Hello Phil,
This is close but not exactly what I'm looking for, this is my logical thinking of how it should happen:
First I need to find the earliest a batch is in the data, no matter if it complies with the other filtered criteria, afterwards it should filter only leave on the table the ones that comply.
Basically im looking for all batches that in their first input comply with the criteria status<> "aprobado" and process ="Tinto".
This is what i got with your suggested formula:
They comply with the filters but have duplicate batch #.
I hope I explained myself properly this time.
Any more thougths?
Thanks
Is this getting closer?
Table 3 = VAR T1 = SUMMARIZE('Table','Table'[BATCH#],"First Date" , MIN('Table'[DATE])) VAR T2 = FILTER( NATURALINNERJOIN('Table',T1),[STATE]<> "Aprobado" && [PROCESS]="Tinto") RETURN SUMMARIZE(T2,'Table'[BATCH#] , "Batches" , COUNTROWS('Table') , "First Date" , min('Table'[DATE]))
Can you please post a mock-up of what the result table should look like?
Same as the one in my last post but only with the top result which is the ealiest date:
Aha, I think I follow now
Table 3 = VAR T1 = SUMMARIZE('Table','Table'[BATCH#],"First Date" , MIN('Table'[DATE])) VAR T2 = FILTER( NATURALINNERJOIN('Table',T1),[STATE]<> "Aprobado" && [PROCESS]="Tinto" && [First Date] = [DATE]) RETURN T2
Thank you!
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
123 | |
85 | |
85 | |
70 | |
51 |
User | Count |
---|---|
205 | |
157 | |
97 | |
79 | |
69 |