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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

Row level value check if value null return warning if value available it will return Available

I have  single table name called Local FPV.   please find the below sample Data set 

 

 item                         BOM  BOM Level      Plant      Item(BOM)     2D-Length     2D-Width     weight[g]    Itemcode

Shipping case             70   Case - CAS      CZ71      70.W398           293                   236            324         FW001691.13

Shipping case             87   Case - CAS      DE19      70.W398           293                   236            321         FW001691.13

Square TIN BODY       70   PAK1 - PAK1    CZ71      87.1445            226                   112              30          FW001691.13

Square TIN BODY       87   PAK1 - PAK1    DE19      87.1445            226                   112                           FW001691.13

 

 

Now i am adding the   weight[g]  value based on the Itemcode like below  added table graph 

 

Itemcode                    Plant            weight 

FW001691.13             CZ71             354

FW001691.13             DE19             321

 

Next trying add new column if weight[g]  value null in Particular Itemcode  any column  . it will be warning i have added below dax code 

 

ALERT = IF(LOCALFPV(weight[g]=BLANK(),"WARNING","AVAILABLE")

 

when i add this column in to the above i am getting duplicate code 

 

Itemcode                    Plant            weight        ALERT

FW001691.13             CZ71             354         AVAILABLE 

FW001691.13             CZ71             354         WARNING

FW001691.13             DE19             321         AVAILABLE

FW001691.13             DE19             321         WARNING  

 

 

But Expect output   Correct result below 

Itemcode                    Plant            weight        ALERT

 

FW001691.13             CZ71             354         WARNING

 

FW001691.13             DE19             321         WARNING  

 

Looking for support . thanks in advance .

2 REPLIES 2
amitchandak
Super User
Super User

@Anonymous , Try a measure like

 

ALERT = IF(countx(filter(allselected(LOCALFPV), LOCALFPV[Itemcode] = max(LOCALFPV[Itemcode])
&& LOCALFPV[Plant] = max(LOCALFPV[Plant]) && Isblank([weight]) ), LOCALFPV[Itemcode] ) >0 ,"WARNING","AVAILABLE")

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

@amitchandak  sir i am tried  above measure but i am getting available only for the all the item code 

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.