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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.