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
Alrythmond
Helper I
Helper I

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
d_gosbell
Super User
Super User


@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
d_gosbell
Super User
Super User


@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

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
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.