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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
THENNA_41
Post Partisan
Post Partisan

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" )

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.


Visit my LinkedIn page by clicking here.


Schedule a meeting with me to discuss further by clicking here.

View solution in original post

2 REPLIES 2
THENNA_41
Post Partisan
Post Partisan

@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" )

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.


Visit my LinkedIn page by clicking here.


Schedule a meeting with me to discuss further by clicking here.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

November Carousel

Fabric Community Update - November 2024

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

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.