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

Try your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now

Reply
Lavishnu
Frequent Visitor

Need table visual row count using field parameter value selection

Hi All,

 

I have a Table visual on my dashboard, the columns/fields using a field parameter to select columns dynamically in table visual. The number of rows changes dynamically dependent on user choices, and the user can pick any combination of values in field parameters.

 

Example:

In my scenario i have 20 columns the user can pick max 5 combination of values in field parameters.

Columns: Customers, Products, Category, Units, Levels, InStock etc 
If Count when products selected alone
If Counts when products & customer where selected
If counts any columns selected where need summary count which ever values selected

 

Need a row count in Card Visual. How many rows appear in the table visual dependent on field parameter selection?

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Lavishnu 

 

Please try this:

First of all, I create a set of sample:

vzhengdxumsft_0-1707875088903.png

Home > transform data

If you want to save the original table, right-click the table and click reference:

vzhengdxumsft_1-1707875287491.png

All select the columns and click the Unpivot Columns.

vzhengdxumsft_3-1707875372311.png

vzhengdxumsft_4-1707875414481.png

Apply&Close.

Add a measure:

Measure 3 = COUNTROWS('Table (2)')

The result is as follow:

vzhengdxumsft_5-1707875470468.png

Best Regards,

Zhengdong Xu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @Lavishnu 

 

Please try this:

First of all, I create a set of sample:

vzhengdxumsft_0-1707875088903.png

Home > transform data

If you want to save the original table, right-click the table and click reference:

vzhengdxumsft_1-1707875287491.png

All select the columns and click the Unpivot Columns.

vzhengdxumsft_3-1707875372311.png

vzhengdxumsft_4-1707875414481.png

Apply&Close.

Add a measure:

Measure 3 = COUNTROWS('Table (2)')

The result is as follow:

vzhengdxumsft_5-1707875470468.png

Best Regards,

Zhengdong Xu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Fabric Data Days is here Carousel

Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.