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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

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
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

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.