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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
vedhikha
Regular Visitor

How to write a DAX using ISBLANK()

I created a column that has to return a score of 0.1 for claims=blank and 0 for any claims present

 

Claim_score = IF(ISBLANK(COUNT(Claims[SCAC]))==TRUE,0.1,0)
 
The above works if claims are present and don't give the value 0.1 when there are no claims.
 
Please help
4 REPLIES 4
Wilson_
Solution Sage
Solution Sage

Hello,

 

Can you please share a small sample table? There doesn't seem to be much to work with here.

vedhikha_0-1680566519724.png

I created a column "Claim_score", which basically is "0" when there is a claim (when the "scac" is present in the table), when the "scac" is blank (not present in table) , then i have to assign a claim score is 0.1. Hope this makes sense

Hello,

 

I created some dummy data based on your table and your measure as constructed in your original post works for me. Maybe you can instead provide a sample pbix file so I can investigate further?

vedhikha
Regular Visitor

vedhikha_0-1680564660115.png

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors