Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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 ()
)
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
66 | |
64 | |
52 | |
39 | |
25 |
User | Count |
---|---|
80 | |
57 | |
45 | |
44 | |
35 |