Forum Discussion
Dynamic row count on the visual dependent on field parameter values
- Anonymous2 years ago
Hi Lavishnu
Please try this:
First of all, I create a set of sample:
Home > transform data
If you want to save the original table, right-click the table and click reference:
All select the columns and click the Unpivot Columns.
Apply&Close.
Add a measure:
Measure 3 = COUNTROWS('Table (2)')The result is as follow:
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.
the number of rows in the tbale visual will depend on the field paramter selction.
example .
if you have a tabe with 1000 customers and a table with 500 products
if you choose customers to be shown in the visual, the visual will have 1000 rows, however if you select the productname, the visual will show 500 products.
- Lavishnu2 years agoFrequent Visitor
Hi Daniel29195,
Yes, depending on selection, however if they picked customers, products, and other column, it shows the overall summary count of how many rows are there in the table visual based on selection.- Daniel291952 years ago
Community Champion
ok i got you, you are asking about the dax measure to write to get the count 😅
mmm, i think you need to create a measure that is counting the rows for each combination :
example let us say we have in the field paramter , customer and product .
so i need 3 measures :
count when product is selected alone ,
count when customer is selected alone
and count when both are seleced .
- Lavishnu2 years agoFrequent Visitor
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
Example:
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