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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Hitha
Regular Visitor

Need a Dax to make a measure for counting the rows on a dynamic table using 2 parameters [Power BI]

The Row count needs to be displayed on a Key card next to the table visual.

The Data of the Table is from two Parameters (Multi-selection) :
'Selected Dimensions P3'[Select Dimensions]
'Selected Measures P3'[Select Measures]
Rows on the Table keeps changing according to the field selection by the viewer. The row count on the key card should simultaneously change to the current number of rows displayed on Table Visual.


Screenshot 2025-05-08 164804.pngScreenshot 2025-05-08 165034.png

 

1 ACCEPTED SOLUTION
v-bmanikante
Community Support
Community Support

Hi @Hitha ,

 

Thank you for reaching out to Microsoft Fabric Community Forum.

 

As per our understanding of your scenario, here's the DAX measure that you can use to dynamically count the rows shown in a table visual based on the viewer's selection through field parameters:

 

DynamicTableRC =
VAR DimFields =
    ADDCOLUMNS(
        'Selected Dimensions P3',
        "IsVisible", ISINSCOPE([Select Dimensions])
    )

VAR VisibleDims =
    FILTER(DimFields, [IsVisible])

RETURN
    COUNTROWS(
        SUMMARIZE(
            'FactTable',          // Replace with your actual base data table
            VisibleDims
        )
    )

 

If this doesn't meet your scenario, we kindly request you to, share a sample dataset that mimics your use case (without sensitive information) along with the expected output, or upload a sample PBIX file so we can review the structure and assist with a more accurate solution.

 

Regards,

B Manikanteswara Reddy

View solution in original post

4 REPLIES 4
v-bmanikante
Community Support
Community Support

Hi @Hitha ,

 

Thank you for reaching out to Microsoft Fabric Community Forum.

 

As per our understanding of your scenario, here's the DAX measure that you can use to dynamically count the rows shown in a table visual based on the viewer's selection through field parameters:

 

DynamicTableRC =
VAR DimFields =
    ADDCOLUMNS(
        'Selected Dimensions P3',
        "IsVisible", ISINSCOPE([Select Dimensions])
    )

VAR VisibleDims =
    FILTER(DimFields, [IsVisible])

RETURN
    COUNTROWS(
        SUMMARIZE(
            'FactTable',          // Replace with your actual base data table
            VisibleDims
        )
    )

 

If this doesn't meet your scenario, we kindly request you to, share a sample dataset that mimics your use case (without sensitive information) along with the expected output, or upload a sample PBIX file so we can review the structure and assist with a more accurate solution.

 

Regards,

B Manikanteswara Reddy

Hi @Hitha ,

 

We wanted to kindly follow up to check if the solution provided for the issue worked? or Let us know if you need any further assistance?

 

If our response addressed, please mark it as Accept as solution and click Yes if you found it helpful.

 

Regards,

B Manikanteswara Reddy

Hi @Hitha ,

 

As we haven’t heard back from you, we wanted to kindly follow up to check if the solution provided for the issue worked? or Let us know if you need any further assistance?

If our response addressed, please mark it as Accept as solution and click Yes if you found it helpful.

 

Please don't forget to give a "Kudos vbmanikante_0-1747314266428.png" – I’d truly appreciate it!

 

Regards,

B Manikanteswara Reddy

Hi @Hitha 

 

May I ask if you have gotten this issue resolved?

 

If it is solved, please mark the helpful reply or share your solution and accept it as solution, it will be helpful for other members of the community who have similar problems as yours to solve it faster.

 

Please don't forget to give a "Kudos vbmanikante_1-1747587257447.png" – I’d truly appreciate it!

 

Regards,

B Manikanteswara Reddy

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.