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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Supermat
Helper I
Helper I

Countrows

Hi,
I Have a table (Click here to Sample) where there are our productions orders.
In this table i have Order number (Key_Odl), products parts that i need to make order (Codice articolo figlio) and i have a colum where i can see if parts are avaible to make orders, also i have a check box. I need to have in my dashboard one colum that let me know if the selected orders is "ok" or "not ok".  I think that i need to countrows a single order and then count how many "Ok" i have. If Ok is equal to Number of item i can make my order if not i can't do.

I hope I was clear

 

Supermat_0-1668009813736.png

 







1 ACCEPTED SOLUTION
mangaus1111
Solution Sage
Solution Sage

Ciao @Supermat ,

you can try this

Column = 
IF(
    MINX(
        FILTER(
            'Facts7',
            'Facts7'[Order] = EARLIER('Facts7'[Order])
        ),
    'Facts7'[Check]
    ) = "NO",
"Not Deliver",
"To be Delivered"
)

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
Supermat
Helper I
Helper I

Perfect!!! Thx

mangaus1111
Solution Sage
Solution Sage

Ciao @Supermat ,

you can try this

Column = 
IF(
    MINX(
        FILTER(
            'Facts7',
            'Facts7'[Order] = EARLIER('Facts7'[Order])
        ),
    'Facts7'[Check]
    ) = "NO",
"Not Deliver",
"To be Delivered"
)

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

The colum work, but now there are some duplicated value

Supermat_0-1668068912165.png

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.