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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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.


Go to My LinkedIn Page


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.


Go to My LinkedIn Page


Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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

Top Solution Authors