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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

Table Visual get Total Rows on current selection

Hello Power BI Community,

I have a table visual as below, where Total Sign-ups is a measure, and rest columns are coming from Signups table.
My requirement is to add a column that will have 1 as a value and then show the total at the end. This table will filter records based on date and location slicers.

Can anyone please help me to get the solution

buhari91_0-1668702026685.png

Thanks in advance

5 REPLIES 5
v-luwang-msft
Community Support
Community Support

Hi @Anonymous ,


Has your problem been solved, if so, please consider Accept a correct reply as the solution or share your own solution to help others find it.

Best Regards
Lucien 

Ttaylor9870
Helper III
Helper III

Hi @Anonymous,

 

Go to transorm data and then click the data tab and click on index column and you're going to want to select custom....

 

Ttaylor9870_1-1668789623964.png

 

Then use this...

 

Ttaylor9870_2-1668789694661.png

 

 

This will add the 1's to every row and hopefully this will work, ket me know if it does or not😊

 

Ttaylor9870_3-1668789749079.png

 

 

Many Thanks,

 

Taylor

 

 

 

 

Ttaylor9870
Helper III
Helper III

Hi @Anonymous,

 

This DAX will work, make a new calculated column and use this...

 

Adding 1 Measure = IF('Table'[firstname] <> BLANK(), 1, IF('Table'[firstname] = BLANK(), 1)) ​

 

It bascially says if there is data in the first column or if it's blank both outcomes return a 1 in your new calculated column.

 

Many Thanks,

 

Taylor

Anonymous
Not applicable

Hi @Ttaylor9870 

This column is not helping me.
I created calculated column as suggested

Row_Counts = IF('Signups'[firstname] <> BLANK(), 1, IF('Signups'[firstname] = BLANK(), 1))

 

buhari91_1-1668705301742.png

As I have multiple entries for any given firstnames, it is summing up the numbers as below:

buhari91_2-1668705820511.png

And when filter is applied through slicer it is not bringing any values on the Table visual. 

buhari91_0-1668705038582.png

 

 

Hi @Anonymous ,

 

Could change the aggregation on the column from Sum to DistinctCount? Click on the table -> Go to the fields pane -> Click the small arrow on the right of the columns name -> Change from sum to Count(Distinct).

 

Many Thanks,

 

Taylor

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

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.

Top Solution Authors
Top Kudoed Authors