Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more.
Get startedGrow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.
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.
Need a row count in Card Visual. How many rows appear in the table visual dependent on field parameter selection?
Solved! Go to Solution.
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.
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.
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 .
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
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.
im afraid there is no other way for now that im aware of .
found this link, could be helful
If this answers your question , mark it as the solution ✅ so can you can help other people in the community find it easily .
I already tried the above solution. Its works for single value selection. If the users selects mutiples values in field parameter its showing overall count.
In my situation any combination users selects need that summary count.
yes i understood what you want to achieve.
however i dont think this is possible for now .
to be able to do such a thing , you need to be able to summarize dynamically base on the selected columns selected from the field paramter, which i dont think is possible for now ( as far as i know ) .
User | Count |
---|---|
84 | |
72 | |
71 | |
68 | |
55 |
User | Count |
---|---|
94 | |
92 | |
91 | |
77 | |
70 |