Forum Discussion
Anonymous
7 years agoNot applicable
Ignore the slicer Item on dax function .
Hi All , I have a slicer called Customer type which shows the below options to the users. All Validated Signed up I am trying to create a one Card KPI which should show the values based...
- 7 years ago
hi, Anonymous
You could use ALL , ALLEXCEPT Function in dax formula to ignore the slicer like below:
Measure = IF ( SELECTEDVALUE ( 'Table'[Customer_type] ) = "All", CALCULATE ( SUM ( 'Table'[Value] ), FILTER ( ALL ( 'Table' ), 'Table'[Customer_type] = "Validated" ) ), CALCULATE ( SUM ( 'Table'[Value] ), FILTER ( ALL ( 'Table' ), 'Table'[Customer_type] = "All" ) ) )Result:
here is the sample pbix file, please try it.
Best Regards,
Lin
- Anonymous7 years ago
Hi,
Thanks for your respones.
I achived the above one by using "HASONEVALUE" function.
Ex: IF (HASONEVALUE('Table'[Customer_type] ), [Total_member],[validated_members])its worked me well the way i wanted.
v-lili6-msft
Community Support
7 years agohi, Anonymous
You could use ALL , ALLEXCEPT Function in dax formula to ignore the slicer like below:
Measure =
IF (
SELECTEDVALUE ( 'Table'[Customer_type] ) = "All",
CALCULATE (
SUM ( 'Table'[Value] ),
FILTER ( ALL ( 'Table' ), 'Table'[Customer_type] = "Validated" )
),
CALCULATE (
SUM ( 'Table'[Value] ),
FILTER ( ALL ( 'Table' ), 'Table'[Customer_type] = "All" )
)
)
Result:
here is the sample pbix file, please try it.
Best Regards,
Lin
Anonymous
7 years agoNot applicable
Hi,
Thanks for your respones.
I achived the above one by using "HASONEVALUE" function.
Ex: IF (HASONEVALUE('Table'[Customer_type] ), [Total_member],[validated_members])
its worked me well the way i wanted.