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
po
Post Prodigy
Post Prodigy

table/matrix visual - on each row show number of rows selected in total report

Hi,

 

have a report 2 visuals

 

 

one a card visual and has

(DISTINCTCOUNT('table'[col]))

 

 

shows 6 

 

 

and have a table visual which shows the 6 rows.

 

When try show this (DISTINCTCOUNT('table'[col])) shows as 1 on each row rather than 6 presumably as evaulating at row level rather than shpwing the total in report which 6.

 

How can we have a variabale which shows this (DISTINCTCOUNT('table'[col])) on each row of the table so evaluate at report leve rather than row level?

 

Thanks

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@po , try one of the two options

 

calculate(DISTINCTCOUNT('table'[col]), allselected('table'))

 

or

 

 

calculate(DISTINCTCOUNT('table'[col]), all('table'))

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@po , try one of the two options

 

calculate(DISTINCTCOUNT('table'[col]), allselected('table'))

 

or

 

 

calculate(DISTINCTCOUNT('table'[col]), all('table'))

Thanks for response

Helpful resources

Announcements
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.