Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Good morning
I have the following table
On which I want to calculate the percentage of product lines that do not have a text, in the comment column, I understand that for this I must generate a measure that transforms into numerical value the cells that have or do not have value, I have tried through COUNTX, but reflects the real data.
You can help me, thanks in advance
Solved! Go to Solution.
Hi @Syndicate_Admin ,
You can try the following:
1) Create a measure to count all products in the table- please adjust for your table and field names
ProductCount= COUNT(TableName[Producto])
2) Create a measure to count non-blank comments
CommentCount= COUNT(TableName[Comentario])
3) Divide the 2 measures to get percent with comments
PercentWithComments= DIVIDE([CommentCount],[ProductCount],0)
The COUNT function ignores blank values:
https://learn.microsoft.com/en-us/dax/count-function-dax
Please mark as solution if this answers the question- thanks!
Hi @Syndicate_Admin ,
You can try the following:
1) Create a measure to count all products in the table- please adjust for your table and field names
ProductCount= COUNT(TableName[Producto])
2) Create a measure to count non-blank comments
CommentCount= COUNT(TableName[Comentario])
3) Divide the 2 measures to get percent with comments
PercentWithComments= DIVIDE([CommentCount],[ProductCount],0)
The COUNT function ignores blank values:
https://learn.microsoft.com/en-us/dax/count-function-dax
Please mark as solution if this answers the question- thanks!
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
76 | |
76 | |
55 | |
37 | |
34 |
User | Count |
---|---|
99 | |
56 | |
53 | |
44 | |
40 |