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