Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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?
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
68 | |
64 | |
51 | |
39 | |
26 |
User | Count |
---|---|
84 | |
57 | |
45 | |
44 | |
36 |