Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Paskk
Regular Visitor

How to qualify a product based on a characteristic

In the table I would like to be able to create a new column to qualify "Product" as "processed" if all the rows of "Product" are "processed" in the "Stato_Ven" column. Thank you

 

ProductColourCustomerSellStato_VenN_Order
ABluPippo100000,00Processed1
BGialloFranco50000,00Not processed2
CVerdeCaio60000,00Processed3
ERossoSempronio90000,00Processed5
GNeroCoco80000,00Processed7
ABluPippo20000,00Not processed8
BGialloFranco50000,00Processed9
CVerdeCaio60000,00Processed10
ERossoSempronio90000,00Processed12
GBiancoCoco80000,00Not processed14
4 ACCEPTED SOLUTIONS
some_bih
Super User
Super User

Hi @Paskk please create calculated column as following and replace table name "Sheet1" with your table name.

Did I answer your question? Mark my post as a solution! Kudos Appreciated!

Status_Test =
IF(
    COUNTROWS(
        FILTER(
            Sheet1,
            Sheet1[Product] = EARLIER(Sheet1[Product]) &&
            Sheet1[Stato_Ven] = "Processed"
        )
    ) = COUNTROWS(
        FILTER(
            Sheet1,
            Sheet1[Product] = EARLIER(Sheet1[Product])
        )
    ),
    "Processed",
    "Not processed"
)

 

some_bih_0-1691738093122.png

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!






View solution in original post

Thanks, your solution is perfect, but when I use it in my table it doesn't work. Can you tell me why? Thanks again

Paskk_0-1691739117882.png

 

View solution in original post

Paskk
Regular Visitor

Sorry, now it works. Great! Thank you again

View solution in original post

@Paskk please accept as solution so other member of community could see it. thank you





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!






View solution in original post

4 REPLIES 4
some_bih
Super User
Super User

Hi @Paskk please create calculated column as following and replace table name "Sheet1" with your table name.

Did I answer your question? Mark my post as a solution! Kudos Appreciated!

Status_Test =
IF(
    COUNTROWS(
        FILTER(
            Sheet1,
            Sheet1[Product] = EARLIER(Sheet1[Product]) &&
            Sheet1[Stato_Ven] = "Processed"
        )
    ) = COUNTROWS(
        FILTER(
            Sheet1,
            Sheet1[Product] = EARLIER(Sheet1[Product])
        )
    ),
    "Processed",
    "Not processed"
)

 

some_bih_0-1691738093122.png

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!






Thanks, your solution is perfect, but when I use it in my table it doesn't work. Can you tell me why? Thanks again

Paskk_0-1691739117882.png

 

Paskk
Regular Visitor

Sorry, now it works. Great! Thank you again

@Paskk please accept as solution so other member of community could see it. thank you





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!






Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.