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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

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