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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
Anonymous
Not applicable

How to check if null value alert based other column

I have a table name called  Local sheet . this  table have three column Item,itemcode,

 

Item                                            Itemcode                                      weigh[g]

Shipping case                             FW002306.01                                  45

Square TIN BODY                      FW002306.01                                   54

Tin Lid                                        FW002306.01                                   67

Tin Tape                                     FW002306.01                                   89

Membrane TOP                         FW002306.01

Shipping case                             FW002306.51                                  85

Square TIN BODY                      FW002306.51                                   34

Tin Lid                                        FW002306.51                                   77

Tin Tape                                     FW002306.51                                   89

Membrane TOP                         FW002306.51                                   34

 

I am creating new column if any weigh[g] column  have a null value  based Item  column it will  alert show WARNING or else AVAILABLE .

 

Itemcode                 Alert 

FW002306.01        WARNING --- becaseue for this itemcode   Membrane TOP   item have blank so it will be warning.

FW002306.51        AVAILABLE  -- becaseue for this itemcode  all the row have a weigh[g] value.

 

i am trying the below measure but it is not working 

 

Column = IF('Local FPV'[Item_Ori]=BLANK()&&'Local FPV'[W[g]]_1]=BLANK(),"WARNING ","AVAILABLE  ")
 

  looking for support .. thanks in advance ..                     

1 ACCEPTED SOLUTION
Jihwan_Kim
Super User
Super User

Hi,

I assume you want to create a new column in the table.

Please check the below picture and the attached pbix file.

 

Untitled.png

 

New Column CC = 
VAR _weightblankcount =
    COUNTROWS (
        FILTER (
            'Local sheet',
            'Local sheet'[Itemcode] = EARLIER ( 'Local sheet'[Itemcode] )
                && 'Local sheet'[weigh[g]]] = BLANK ()
        )
    )
RETURN
    IF ( _weightblankcount >= 1, "Warning", "Available" )

 

    Microsoft MVP
 

 

   


      If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


   


     
        LinkedInVisit my LinkedIn page
     

   


   


     
        Outlook BookingSchedule a short Teams meeting to discuss your question

     

   


 


View solution in original post

2 REPLIES 2
Anonymous
Not applicable

@Jihwan_Kim  Thank you so much its working 

Jihwan_Kim
Super User
Super User

Hi,

I assume you want to create a new column in the table.

Please check the below picture and the attached pbix file.

 

Untitled.png

 

New Column CC = 
VAR _weightblankcount =
    COUNTROWS (
        FILTER (
            'Local sheet',
            'Local sheet'[Itemcode] = EARLIER ( 'Local sheet'[Itemcode] )
                && 'Local sheet'[weigh[g]]] = BLANK ()
        )
    )
RETURN
    IF ( _weightblankcount >= 1, "Warning", "Available" )

 

    Microsoft MVP
 

 

   


      If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


   


     
        LinkedInVisit my LinkedIn page
     

   


   


     
        Outlook BookingSchedule a short Teams meeting to discuss your question

     

   


 


Helpful resources

Announcements
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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