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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
bharathiscripps
Frequent Visitor

How to get total count for rank in the grant total of powerbi table visual?

Hi All,

 

I have created a Rank measure and using that in a table visual. At the bottom in the Total for Rank there is 1. Can I get the total count there instead of 1? If not is there a way I can hide just that without removing Total Revenue?

 

bharathiscripps_0-1637070363523.png

 

Thank you,

Bharathi

1 ACCEPTED SOLUTION
DataVitalizer
Super User
Super User

Hi @bharathiscripps 

Lets say your current measure is Rank=formula, create a new measure using this Dax code

NewRank= 
var myrank=[Rank]
Return if(hasonevalue(Advertiser), myrank, count(Table[Advertiser]))

Did it work ? 👌Mark it as a solution to help spreading knowledge 👉A kudos would be appreciated

View solution in original post

3 REPLIES 3
bharathiscripps
Frequent Visitor

Hi @DataVitalizer 

 

Please ignore my last response.

Your suggestion works.

 

Thank you,

Bharathi

bharathiscripps
Frequent Visitor

Hi @DataVitalizer 

 

Thank you for the response.

I want to replace the 1 with, for this case 1792. How do I replace the total in table with DAX ?

 

bharathiscripps_0-1637073858511.png

bharathiscripps_1-1637073979239.png

 

Regards,

Bharathi

DataVitalizer
Super User
Super User

Hi @bharathiscripps 

Lets say your current measure is Rank=formula, create a new measure using this Dax code

NewRank= 
var myrank=[Rank]
Return if(hasonevalue(Advertiser), myrank, count(Table[Advertiser]))

Did it work ? 👌Mark it as a solution to help spreading knowledge 👉A kudos would be appreciated

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.