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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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_
Super User
Super User

Hello,

 

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




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





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?




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





vedhikha
Regular Visitor

vedhikha_0-1680564660115.png

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.