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,
I've searched everywhere for this and seem unable to find an answer!
I'm wanting a measure to count the columns, in a specified range of columns, whereby the value is greater than 0. I've included an example of how this would look - The Count column is the result of the measure and, for example, column A isn't being counted as it's not relevant.
Any help would be much appreciated.
Thanks
Solved! Go to Solution.
Hi @Liam01 ,
Try something like this.
Columns Populated = VAR B_C = IF(SUM(Test[B])>=1,1,0)
VAR C_C = IF(SUM(Test[C])>=1,1,0)
VAR D_C = IF(SUM(Test[D])>=1,1,0)
VAR E_C = IF(SUM(Test[E])>=1,1,0)
RETURN B_C+C_C+D_C+E_C
Hi @Liam01 ,
Try something like this.
Columns Populated = VAR B_C = IF(SUM(Test[B])>=1,1,0)
VAR C_C = IF(SUM(Test[C])>=1,1,0)
VAR D_C = IF(SUM(Test[D])>=1,1,0)
VAR E_C = IF(SUM(Test[E])>=1,1,0)
RETURN B_C+C_C+D_C+E_C
Hi,
I'm returning to this as I need this to do something slightly different and hopefully you may be able to help.
As it works at the minute, it counts the items but if a job appears twice with a B in each occurrence, it will still only return 1.
I guess i'm wanting this measure to do a count rather than a distinct count, as in the photo below - Top table shows data, bottom shows when it's combined by job number.
So if a job appears twice and each occurrence has an A, the bottom table would show 2. Hopefully that makes sense.
Thanks
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 |
---|---|
62 | |
61 | |
52 | |
39 | |
23 |
User | Count |
---|---|
85 | |
58 | |
45 | |
43 | |
38 |