Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hi all,
I have a problem with group by measure.
I have a table called FOI- with Transaction ID (Unique), part number, Supplier Name, location of the part, failure reason, failure timestamp, and more descrptive fields of the part.
Eventually i need to get a table with supplier name and the number of parts which failed more than twice.
For example - Supplier XXX-->6 (for this vendor, 6 units failed more than twice)
Im thinkign to use the group bt with few iterations, but cant find the right way to do that.
Any idea?
I have tried this one and got this error (with FOI[IPN] instead if FOI[Return])
Function SUMMARIZE expects a column name as argument number 3.
Hi, Sure I changed the column names based on the data.
If the part appears in the report its failed, every record in the table is failure record.
Hi, Thanks again.
Now the formula works but the data is incorrect.
Table = SUMMARIZE(FOI,FOI[IPN],"Supplier Name",IF( CALCULATE(COUNT(FOI[IPN]),FILTER(FOI,NOT(ISBLANK(FOI[IPN]))))>=2, CALCULATE(COUNT(FOI[IPN]),FILTER(FOI,NOT(ISBLANK(FOI[IPN])))),BLANK()))
See for exmpale in the picture, part number 500257585, appears in the new table as 227 times while in the data is appears only 129 times.
Hi, Thanks again for the support.
i think it may be issue with the formula since i cant see any Supplier in the supplier Name column.
This is the formula
Table = SUMMARIZE(FOI,FOI[IPN],"Supplier Name",IF( CALCULATE(COUNT(FOI[IPN]),FILTER(FOI,NOT(ISBLANK(FOI[IPN]))))>=2, CALCULATE(COUNT(FOI[IPN]),FILTER(FOI,NOT(ISBLANK(FOI[IPN])))),BLANK()))
In the "Supplier Name" column i see only the count of the part
Thanks for your feedback!
when you say FOI[Return] you mean the unioque field in the table?
it should count the part number right?
User | Count |
---|---|
117 | |
73 | |
58 | |
49 | |
48 |
User | Count |
---|---|
171 | |
122 | |
60 | |
59 | |
56 |