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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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