Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.
Hello,
Can you help me to transfer the following statement to power BI from SQL (Google data studio)
Sum(case when CONTAINS_TEXT(Status,"Done") then 1 else 0 end)/sum (case when Status is not null then 1 else 0 end)
Both columns are strings not numbers.
Thanks in advance!
Solved! Go to Solution.
Hi i belive this could be what you are looking for;
Dax =
DIVIDE (
CALCULATE ( COUNTROWS ( 'Table' ), CONTAINSSTRING ( 'Table'[status], "Done" ) ),
CALCULATE ( COUNTROWS ( 'Table' ), 'Table'[status] <> BLANK () ),
BLANK ()
)
Thanks, I was using column instead of measure
Hi i belive this could be what you are looking for;
Dax =
DIVIDE (
CALCULATE ( COUNTROWS ( 'Table' ), CONTAINSSTRING ( 'Table'[status], "Done" ) ),
CALCULATE ( COUNTROWS ( 'Table' ), 'Table'[status] <> BLANK () ),
BLANK ()
)
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.