cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
THENNA_41
Post Partisan
Post Partisan

Warning alert in new column if any column value missing

I am using single table for mulitple Graph .Check is all items are present in th table. This means that if any item is missing vs reference table, tool should show a “Warning” in new column in                

Summay Table 

  Item                BOM              Height              Weight            Volume 

FW001              Pack               450                                            234  

 

FW002              Pack               450                    344                  234  

 

FW003              Pack                                        344                  234    

 

For Example :

  Item                BOM              Height              Weight            Volume      alert 

FW001              Pack               450                                            234           Warning

 

FW002              Pack               450                    344                  234          Avaialbe   

 

FW003              Pack                                        344                  234           Warning

 

Any Idea .. looking for support . Thanks in advance 

1 ACCEPTED SOLUTION
v-yangliu-msft
Community Support
Community Support

Hi  @THENNA_41 ,

Here are the steps you can follow:

1. Go to Power query – Conditional Column.

vyangliumsft_0-1655862969078.png

2. Select Add Clause - add each column to it.

Operator – equals

Value -- null

Output -- Warning

Else -- Avaialbe

vyangliumsft_1-1655862969083.png

3. Result:

vyangliumsft_2-1655862969084.png

 

Best Regards,

Liu Yang

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

9 REPLIES 9
v-yangliu-msft
Community Support
Community Support

Hi  @THENNA_41 ,

Here are the steps you can follow:

1. Go to Power query – Conditional Column.

vyangliumsft_0-1655862969078.png

2. Select Add Clause - add each column to it.

Operator – equals

Value -- null

Output -- Warning

Else -- Avaialbe

vyangliumsft_1-1655862969083.png

3. Result:

vyangliumsft_2-1655862969084.png

 

Best Regards,

Liu Yang

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

CNENFRNL
Super User
Super User

Always resort to PQ when it comes to row-oriented processing.

let
    Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45Wcgs3MDBU0lEKSEzOBlImpgZAEoiMjE2UYnUg8kbo8sYmJmhKjBFKUOVjAQ==", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Item = _t, BOM = _t, Height = _t, Weight = _t, Volume = _t]),
    #"Changed Type" = Table.TransformColumnTypes(Source,{{"Item", type text}, {"BOM", type text}, {"Height", Int64.Type}, {"Weight", Int64.Type}, {"Volume", Int64.Type}}),
    Flagged = Table.AddColumn(#"Changed Type", "Flag", each if List.Contains(Record.ToList(_), null) then "Available" else "Warning")
in
    Flagged

CNENFRNL_0-1655470766643.png


Thanks to the great efforts by MS engineers to simplify syntax of DAX! Most beginners are SUCCESSFULLY MISLED to think that they could easily master DAX; but it turns out that the intricacy of the most frequently used RANKX() is still way beyond their comprehension!

DAX is simple, but NOT EASY!

DimaMD
Super User
Super User

Hi, @THENNA_41  Try it
Screenshot_20.jpg

Maybe there are more conditions?


__________________________________________

Thank you for your like and decision

__________________________________________

Greetings from Ukraine

To help me grow PayPal: embirddima@gmail.com

@DimaMD  How to add multiple value for above Measure . i am trying to add two more column value above Dax . but i am getting  error 

Hi @THENNA_41 Please provide a sample of the data


__________________________________________

Thank you for your like and decision

__________________________________________

Greetings from Ukraine

To help me grow PayPal: embirddima@gmail.com

 

@DimaMD  please find the below  Sample of Data PBIX d file .

 

Sample PBIX file 

 

Thank you..

@THENNA_41 What columns do you want to be in the condition?


__________________________________________

Thank you for your like and decision

__________________________________________

Greetings from Ukraine

To help me grow PayPal: embirddima@gmail.com

@DimaMD  for  all the column . if any column value missing   its  should warning and if all column value available its showing available  alert 

@THENNA_41  Try it,  if you missed the column try to add yourself.

alert = 
IF(
    AND(OR(
    [2D - Dimension 1 - Length [mm]] (Technical Drawing Details)] &&
    [2D - Dimension 2 - Width [mm]] (Technical Drawing Details)] <> BLANK(),
    [Area [cm2]] (Technical Drawing Details)] &&
    [BOM Number] <> BLANK()), [Cut-Off Length] && [Grammage [g/m2]] (from base mat./ TS)] && [Height (mm) (Shipping Case Details)] && [Weight [g]]] <> BLANK()), 
    "Available","Warning")

 


__________________________________________

Thank you for your like and decision

__________________________________________

Greetings from Ukraine

To help me grow PayPal: embirddima@gmail.com

Helpful resources

Announcements
PBI Sept Update Carousel

Power BI September 2023 Update

Take a look at the September 2023 Power BI update to learn more.

Learn Live

Learn Live: Event Series

Join Microsoft Reactor and learn from developers.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

MPPC 2023 PBI Carousel

Power Platform Conference-Power BI and Fabric Sessions

Join us Oct 1 - 6 in Las Vegas for the Microsoft Power Platform Conference.

Top Solution Authors
Top Kudoed Authors