cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Alrythmond Regular Visitor
Regular Visitor

Static Grand Total Row, requirement that the total should not change even when filtered

Hi Everyone

 

I have got a table and its total, my requirement is to have a grand total from a another table, but in this case I will use a string, it works fine when selecting 2 or more values from the slicer but when I select only 1 it changes to the total of the one remaining value selected.

notchange1.PNG

when I select the filters like this is shows correct output

 

notchange2.PNG

but when I select only one value it shows wrong output

Notchanging3.PNG

 

it should only display the text "This should not change" even if only one value is selected

 

here is my dax:

 

TOTAL = 
IF (
	HASONEVALUE ( 'Experiment Table'[Product] ),
	SUMX ( 'Experiment Table', [Whole] * [Per] ),
	"THIS SHOULD NOT CHANGE"
)

 

1 ACCEPTED SOLUTION

Accepted Solutions
Super User III
Super User III

Re: Static Grand Total Row, requirement that the total should not change even when filtered


@Alrythmond wrote:

 

it should only display the text "This should not change" even if only one value is selected

 


Then you should not be using the HASONEVALUE() function. Try using ISINSCOPE() instead

View solution in original post

2 REPLIES 2
Super User III
Super User III

Re: Static Grand Total Row, requirement that the total should not change even when filtered


@Alrythmond wrote:

 

it should only display the text "This should not change" even if only one value is selected

 


Then you should not be using the HASONEVALUE() function. Try using ISINSCOPE() instead

View solution in original post

Alrythmond Regular Visitor
Regular Visitor

Re: Static Grand Total Row, requirement that the total should not change even when filtered

OH wow!, Thank you so much! I didn't notice there was a function like this, this will help me althroughout my development thank you so much!

Helpful resources

Announcements
Meet the 2020 Season 1 Power BI Super Users!

Meet the 2020 Season 1 Power BI Super Users!

It’s the start of a new Super User season! Learn all about the new Super Users and brand-new tiered recognition system.

Super User Challenge: Can You Solve These?

Super User Challenge: Can You Solve These?

We're celebrating the start of the New Super User season with our first ever Super User 'Can You Solve These?' challenge.

Power BI Desktop Update - February 2020

Power BI Desktop Update - February 2020

We are super excited for our update this month, as we are releasing two of our top community requests!

Power Platform Online Conference

Power Platform Online Conference

Join us for the first ever Power Platform Online Conference!

Top Solution Authors