cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
bkan
Post Patron
Post Patron

How to get the total at the bottom for non numeric fields

Hi All,

I have a report where i want to get the total at the bottom. The issue is the column is not numeric , it is case number. I need the count(casenumber) as a total. I created a new measure (GrandTotal), but that will be just another column. Please see the below screen shot.

Capture32.PNG

Please advice.

Thanks

1 ACCEPTED SOLUTION

@bkan ,

 

if(isinscope(Table[casenumber), max(Table[casenumber]), count(Table[casenumber]))

 

or

 

if(isfiltered(Table[casenumber), max(Table[casenumber]), count(Table[casenumber]))



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Dashboard of My Blogs !! YouTube Channel !! Connect on Linkedin

Proud to be a Super User!

View solution in original post

4 REPLIES 4
amitchandak
Super User IV
Super User IV

@bkan , You can use isfiltered. But That also need two measures

https://powerpivotpro.com/2013/03/hasonevalue-vs-isfiltered-vs-hasonefilter/



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Dashboard of My Blogs !! YouTube Channel !! Connect on Linkedin

Proud to be a Super User!

Thanks @amitchandak can you please explain what the other measure would be , the article is not that clear.

@bkan ,

 

if(isinscope(Table[casenumber), max(Table[casenumber]), count(Table[casenumber]))

 

or

 

if(isfiltered(Table[casenumber), max(Table[casenumber]), count(Table[casenumber]))



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Dashboard of My Blogs !! YouTube Channel !! Connect on Linkedin

Proud to be a Super User!

View solution in original post

Thanks @amitchandak that worked ! 

Helpful resources

Announcements
PBI User Groups

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

April Update

Check it Out!

Click here to read more about the April 2021 Updates!

MBAS Carousel

Sign up for our May 4th event!

May the fourth be with you, join us online!

secondImage

The largest Power BI virtual conference

100+ sessions, 100+ speakers, Product managers, MVPs, and experts. All about Power BI. Attend online or watch the recordings.