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.
Hi all,
I have created a key measure condition to return true or false from my viz table.
Here is an example below, I have multiple rows, with the condition true or false and I am trying to calculate based on this condition what's the % of true by counting the rows, however I am facing some difficulties with the simple dax countrows.
Would be so nice to have your help on that, thank you!!
Product ID | Product Name | Market | application | sales CY | sales PY | Condi |
1452454 | tomatoes | store | tomato sauce | 1245 | 1235 | True |
1452454 | tomatoes | truck food | pizza | 4578 | False |
Solved! Go to Solution.
So I was able to find a solution for this issue, it might be helpful for some other BI users
I have used first
Instead of summing up the True/False measure, you could use that calculation in the sum.
Using your data, I made a simple [True/False] measure
Measure Condi = IF(SELECTEDVALUE('Table'[Market]) = "store", "True", "False")
count True rows = CALCULATE(COUNTROWS('Table'),FILTER('Table','Table'[Market]= "store"))
Percent true rows = DIVIDE(CALCULATE(COUNTROWS('Table'),FILTER('Table','Table'[Market] = "store")),COUNTROWS('Table'))
Hi, thanks a lot for the prompt reply. That's a good way to do it, however the way how my data are this will not be possible because the condition is the one that could defferienciate between the product IDs if it is true or false, also it has to be dynamic otherwise drilling down and up I cannot get the %
I I have tried it this way, but I am stuck with counting the rows
So I was able to find a solution for this issue, it might be helpful for some other BI users
I have used first
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 |
---|---|
17 | |
8 | |
7 | |
7 | |
6 |
User | Count |
---|---|
23 | |
11 | |
10 | |
9 | |
7 |