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
KMiller
Frequent Visitor

Count non blank rows in the dynamic value text box

I would like to use the dynamic value in the text box to count the number of responses I have for each question. Q5_1 and Q5_2 are both text columns.

For example, Q5_1 has 100 rows with responses. I want the text to be "N = 100"

Q5_2 only has 76 responses so N = 76

KMiller_6-1745435190895.png

KMiller_7-1745435267733.png KMiller_8-1745435288959.pngKMiller_9-1745435327308.png  KMiller_11-1745435476610.png KMiller_12-1745435522209.png

 

 

KMiller_10-1745435367132.png

 

1 ACCEPTED SOLUTION
ryan_mayu
Super User
Super User

@KMiller 

you can use countrows to count all rows

https://learn.microsoft.com/en-us/dax/countrows-function-dax?wt.mc_id=DP-MVP-5004616

 

use countblank to count blank rows

https://learn.microsoft.com/en-us/dax/countblank-function-dax?wt.mc_id=DP-MVP-5004616

 

then non blank  = all rows - blank rows





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

7 REPLIES 7
v-nmadadi-msft
Community Support
Community Support

Hi @KMiller 

May I ask if you have resolved this issue? If so, please mark the helpful reply and accept it as the solution. This will be helpful for other community members who have similar problems to solve it faster.

Thank you.

 

ryan_mayu
Super User
Super User

@KMiller 

you can use countrows to count all rows

https://learn.microsoft.com/en-us/dax/countrows-function-dax?wt.mc_id=DP-MVP-5004616

 

use countblank to count blank rows

https://learn.microsoft.com/en-us/dax/countblank-function-dax?wt.mc_id=DP-MVP-5004616

 

then non blank  = all rows - blank rows





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




@ryan_mayu That does work. Thank you

 

However, I would need to create a new measure for every single column I want to use for the dynamic value text box.

For example, I would need the Countblank for Q5_1, Q5_2, Q18, etc. I have multiple visuals I want to add the text box to.

 

It doesn't seem like I am able to directly write into the dynamic value box to get the value.

KMiller_0-1745501319041.png

 

Hi @KMiller  ,
Thanks for reaching out to the Microsoft fabric community forum.

Please check if the number of ‘table name( column name)’ prompt Is giving the correct value related to your data.

vnmadadimsft_0-1745557044699.png

If this works you can add the dynamic text value in multiple visuals.

 

If you find this post helpful, please mark it as an "Accept as Solution" and consider giving a KUDOS. Feel free to reach out if you need further assistance.
Thanks and Regards


Hi @v-nmadadi-msft that gives me the unique values in that column. Still not exactly what I need. Good information to have though, thank you.

Hi @KMiller ,

 

If the dynamic text value isn't meeting your specific requirements, you can achieve the desired result using the technique mentioned by @ryan_mayu  leveraging countrows and countblank. The main limitation of this approach is that it requires creating a separate measure for each column, but unfortunately, that's a constraint we have to work with.


If you find this post helpful, please mark it as an "Accept as Solution" and consider giving a KUDOS. Feel free to reach out if you need further assistance.
Thank you

I think you can create a slicer. If you select the Qname, then the output will change automatically.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




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