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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
psyche2k
Frequent Visitor

How to get count of number of rows from a table visual

I want to write a measure to get a title which will show the no.of rows visible in the table after applying the filters.

psyche2k_0-1689939659791.png
For reference:
In the pic, no of document IDs that have [A_regFormat] = "EU" are 27 and [A_regFormat] = "Other" are 173 after the other applied 'filter on pages' (status, Product status in.., A_GHS)
I want to show the title as ...SDS (27 to 173...)...

How do I write the measure to acheive this?

Thanks.

1 ACCEPTED SOLUTION
olgad
Super User
Super User

"SDS(" &Calculate(Countrows(Table you are using to feed the visual), [A_regFormat] = "EU") & "to " & Calculate(Countrows(Table you are using to feed the visual), [A_regFormat] = "Other")&")"


DID I ANSWER YOUR QUESTION? PLEASE MARK MY POST AS A SOLUTION! APPRECIATE YOUR KUDO/LIKE!
PROUD TO BE A SUPER USER!
Best Stories, Interesting Cases: PowerBI Storytime Newsletter
Linkedin Profile: Linkedin
YouTube Channel: PowerBI Storytime

View solution in original post

1 REPLY 1
olgad
Super User
Super User

"SDS(" &Calculate(Countrows(Table you are using to feed the visual), [A_regFormat] = "EU") & "to " & Calculate(Countrows(Table you are using to feed the visual), [A_regFormat] = "Other")&")"


DID I ANSWER YOUR QUESTION? PLEASE MARK MY POST AS A SOLUTION! APPRECIATE YOUR KUDO/LIKE!
PROUD TO BE A SUPER USER!
Best Stories, Interesting Cases: PowerBI Storytime Newsletter
Linkedin Profile: Linkedin
YouTube Channel: PowerBI Storytime

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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