Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

How to count consecutive columns and then count only the columns with all values

Hey,
I have the following table!

MayankMit1625_0-1644109426079.png

Here Plant1, Plant 2 etc tells how many operation does Org1 has under that Plant.

I want to calculate the "Net" value has the COUNT of cells that are filled from Plant1 to Plant 5 and then calculate the total number of rows under "Net" which has all 5 plants 

I used measures to calculate the values but wasn't able to get to the solution.
Please help!



1 ACCEPTED SOLUTION
CNENFRNL
Community Champion
Community Champion

The power of Excel worksheet formula is beyond your imagination for such a simple question,

CNENFRNL_1-1644136201023.png

 

CNENFRNL_2-1644136351058.png

 

 


Thanks to the great efforts by MS engineers to simplify syntax of DAX! Most beginners are SUCCESSFULLY MISLED to think that they could easily master DAX; but it turns out that the intricacy of the most frequently used RANKX() is still way beyond their comprehension!

DAX is simple, but NOT EASY!

View solution in original post

4 REPLIES 4
CNENFRNL
Community Champion
Community Champion

The power of Excel worksheet formula is beyond your imagination for such a simple question,

CNENFRNL_1-1644136201023.png

 

CNENFRNL_2-1644136351058.png

 

 


Thanks to the great efforts by MS engineers to simplify syntax of DAX! Most beginners are SUCCESSFULLY MISLED to think that they could easily master DAX; but it turns out that the intricacy of the most frequently used RANKX() is still way beyond their comprehension!

DAX is simple, but NOT EASY!

Ashish_Mathur
Super User
Super User

Hi,

Please show the end result which you are expecting


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Anonymous
Not applicable

MayankMit1625_0-1644123446818.png

Final result is "Total together" i.e. Organization that has operation in all the 5 plants.

Total Together counts the number of "5" in Net column

Hi,

You may download my PBI file from here.

Hope this helps.

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors