Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Brip51
Creator
Creator

Count Active Cols in Straight Table

Hi,

I have a straight table and I need to capture the number of columns (both Dimensions and Measure) in the table.

The table has columns that show/hide conditionally so I need the count of all the columns that are not conditionally hidden.

I have not come up with any way to do this. I looked at NoOfColums function, but that is for pivot tables.

 

Any help on this would be greatly appreciated.

Thank you,

Brian

Labels (1)
1 Solution

Accepted Solutions
marcus_sommer

Why not using the show/hidden conditions to evaluate how many dimensions/expression have been set to TRUE?

- Marcus

View solution in original post

4 Replies
Or
MVP
MVP

You could use Dimensionality(), except specifically in the total where that wouldn't work.

Brip51
Creator
Creator
Author

Hi Or,

Thank you.  That will give me the number of dimensions in the table.  I need both dimension and expressions.

My test table has 13 total columns 2 dimensions and 11 measures.  Dimensionality() correctly returns 2.

I need to count all the columns in the table.

Regards,

Brian

marcus_sommer

Why not using the show/hidden conditions to evaluate how many dimensions/expression have been set to TRUE?

- Marcus

Brip51
Creator
Creator
Author

Hi Marcus,

Yes.  I am not sure why I didn't think of that.  That worked for me.  Thank you!!

Best Regards,

Brian