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
heatherl
Frequent Visitor

Suppressing measure total in table

Hi,

I have a measure as follows.

 

EN Code(s) new = calculate(CONCATENATEX(values(WAGES[EN Code]),WAGES[EN Code],","))

 

I created it as a measure so that it would be updated by my slicer filters as the user filters the data. When it was a Custom Column, it stayed static no matter the slicer filters.

 

I have a resulting issue now which is that the measure is creating a Total in my totals section, which is sometimes an extremely long string that pushes the total section to take over the whole table. I have been searching for a way to suppress the total for that column only but have not found a solution.

 

Can anyone assist?

 

Thanks in advance!

2 ACCEPTED SOLUTIONS
Anonymous
Not applicable

Thanks @Anonymous, I got it to work using that article. Using ISFILTERED wasn't working for my particular circumstance.

 

EN Code(s) new = IF(HASONEVALUE(REVENUE_BY_ROUTE_F[Route ID]),
                                  calculate(CONCATENATEX(values(WAGES_BY_ROUTE_F[EN Code Full]),WAGES_BY_ROUTE_F[EN Code Full],",")),
                                  BLANK()
                                  )

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Thanks @Anonymous, I got it to work using that article. Using ISFILTERED wasn't working for my particular circumstance.

 

EN Code(s) new = IF(HASONEVALUE(REVENUE_BY_ROUTE_F[Route ID]),
                                  calculate(CONCATENATEX(values(WAGES_BY_ROUTE_F[EN Code Full]),WAGES_BY_ROUTE_F[EN Code Full],",")),
                                  BLANK()
                                  )

AlB
Super User
Super User

Hi @heatherl 

You could

1. Edit the visual so that it doesn't show Totals/Subtotals (see pic below)

2. Update the measure code so that it returns a blank when at the total row.  Yopu can detect that using ISFILTERED( ) 

 

image.png

 

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.