• Skip to main content
  • Skip to header right navigation
  • Skip to site footer

My Online Training Hub

Learn Dashboards, Excel, Power BI, Power Query, Power Pivot

  • Courses
  • Pricing
    • SALE 20% Off All Courses
    • Free Courses
    • Power BI Course
    • Excel Power Query Course
    • Power Pivot and DAX Course
    • Excel Dashboard Course
    • Excel PivotTable Course – Quick Start
    • Advanced Excel Formulas Course
    • Excel Expert Advanced Excel Training
    • Excel Tables Course
    • Excel, Word, Outlook
    • Financial Modelling Course
    • Excel PivotTable Course
    • Excel for Customer Service Professionals
    • Multi-User Pricing
  • Resources
    • Free Downloads
    • Excel Functions Explained
    • Excel Formulas
    • Excel Add-ins
    • IF Function
      • Excel IF Statement Explained
      • Excel IF AND OR Functions
      • IF Formula Builder
    • Time & Dates in Excel
      • Excel Date & Time
      • Calculating Time in Excel
      • Excel Time Calculation Tricks
      • Excel Date and Time Formatting
    • Excel Keyboard Shortcuts
    • Excel Custom Number Format Guide
    • Pivot Tables Guide
    • VLOOKUP Guide
    • ALT Codes
    • Excel VBA & Macros
    • Excel User Forms
    • VBA String Functions
  • Members
    • Login
    • Logout
    • Password Reset
  • Blog
  • Excel Webinars
  • Excel Forum
    • Register as Forum Member

Slicer not working when using IF with ISBLANK on another Slicer|Power Pivot|Excel Forum|My Online Training Hub

You are here: Home / Slicer not working when using IF with ISBLANK on another Slicer|Power Pivot|Excel Forum|My Online Training Hub

sale now on

Avatar
sp_LogInOut Log In sp_Registration Register
sp_Search Search
Advanced Search
Search
Forum Scope




Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
sp_Search Search
sp_RankInfo
Lost password?
sp_CrumbsHome HomeExcel ForumPower PivotSlicer not working when using IF wi…
sp_PrintTopic sp_TopicIcon
Slicer not working when using IF with ISBLANK on another Slicer
Avatar
jon999
Member
Members
Level 0
Forum Posts: 21
Member Since:
September 1, 2016
sp_UserOfflineSmall Offline
1
August 29, 2017 - 8:53 am
sp_Permalink sp_Print

Hi

I have two slicers one called Organisation and the other called Division. When I filter based on Organisation the Division list does not change and shows all divisions and does not filter just the divisions that relate to the Organisation.

I have used the below measure but this does not work.

IF (
COUNTROWS ( Division ) > 0,
IF ( ISBLANK ( SUM ( Data[AUD] ) ), 0, SUM ( Data[AUD] ) )
)

I also have the same measure with USD and then use SWITCH to use a slicer to move between AUD or USD.

I have a table called Data (has columns with AUD, USD, Organisation and Division) and two other tables called Organisation and Division which I have made a relationship with Data.

I have attached a test file where you can see by clicking on Organisation the Division slicer does not change.

Thanks

Jon

Avatar
Mynda Treacy
Admin
Level 10
Forum Posts: 4371
Member Since:
July 16, 2010
sp_UserOfflineSmall Offline
2
August 29, 2017 - 11:35 am
sp_Permalink sp_Print

Hi Jon,

Thanks for sharing a sample file.This makes it a lot easier to quickly pinpoint the problem.

Your measure is returning a zero if there is no count. The Slicer is only ignoring items with 'no data', but zero is considered 'data'.

If you write your formula: =SUM(Data[AUD]) then this results in the Slicers behaving correctly, but I suspect you wrote the formula that way to handle your FX conversion.

Mynda

Avatar
jon999
Member
Members
Level 0
Forum Posts: 21
Member Since:
September 1, 2016
sp_UserOfflineSmall Offline
3
August 29, 2017 - 11:54 am
sp_Permalink sp_Print

Hi Mynda

Thanks for replying to my question.

The reason for the measure is so that in the Rows section of the pivot table I can show all items even if blank/zero and not just items that have a number.

I have created a P&L in a pivot table, in the Rows I have a list of all P&L accounts and then the Values the measure. So I want to show all P&L accounts no matter if they have a value or not. If I just use the SUM(Data[AUD]) it will only show the P&L accounts with a value and thus does not create the full P&L.

Thanks

Jon

Avatar
Mynda Treacy
Admin
Level 10
Forum Posts: 4371
Member Since:
July 16, 2010
sp_UserOfflineSmall Offline
4
August 29, 2017 - 3:08 pm
sp_Permalink sp_Print

Ok, that makes sense. But, that also means that your Slicer will show every item since they will contain a zero, as opposed to having 'no data'.

Mynda

Avatar
jon999
Member
Members
Level 0
Forum Posts: 21
Member Since:
September 1, 2016
sp_UserOfflineSmall Offline
5
August 29, 2017 - 4:13 pm
sp_Permalink sp_Print

Thanks so much for your help.

So I either show all P&L accounts and not be able to use both Slicers or use SUM and don't show the full list.

Avatar
Mynda Treacy
Admin
Level 10
Forum Posts: 4371
Member Since:
July 16, 2010
sp_UserOfflineSmall Offline
6
August 30, 2017 - 12:03 pm
sp_Permalink sp_Print

Yes, I'm afraid I don't know of any workaround for that with Power Pivot. With regular PivotTables there is an option to 'Show items with no data' in the field settings, but this is greyed out in Power Pivot.

Mynda

sp_Feed
Go to top
Forum Timezone: Australia/Brisbane
Most Users Ever Online: 170
Currently Online: Victoria Turner
Guest(s) 64
Currently Browsing this Page:
1 Guest(s)
Top Posters:
SunnyKow: 1432
Anders Sehlstedt: 858
Velouria: 580
Purfleet: 412
Frans Visser: 346
David_Ng: 306
lea cohen: 214
A.Maurizio: 202
Aye Mu: 201
Jessica Stewart: 189
Newest Members:
Richard Adams
Vincent Starcevich
Patrick Lawrence
Louise Bell
GIJO GEORGE
Kumud Patel
Atos Franzon
Andrew MacDonald
Artie Ball
Jenn Cain
Forum Stats:
Groups: 3
Forums: 24
Topics: 6080
Posts: 26686

 

Member Stats:
Guest Posters: 49
Members: 31571
Moderators: 2
Admins: 4
Administrators: Mynda Treacy, Philip Treacy, Catalin Bombea, FT
Moderators: MOTH Support, Riny van Eekelen
© Simple:Press —sp_Information

Sidebar

Blog Categories

  • Excel
  • Excel Charts
  • Excel Dashboard
  • Excel Formulas
  • Excel PivotTables
  • Excel Shortcuts
  • Excel VBA
  • General Tips
  • Online Training
  • Outlook
  • Power Apps
  • Power Automate
  • Power BI
  • Power Pivot
  • Power Query
trustpilot excellent rating
 

Company

  • About My Online Training Hub
  • Disclosure Statement
  • Frequently Asked Questions
  • Guarantee
  • Privacy Policy
  • Terms & Conditions
  • Testimonials
  • Become an Affiliate

Support

  • Contact
  • Forum
  • Helpdesk - For Technical Issues

Copyright © 2023 · My Online Training Hub · All Rights Reserved

Microsoft and the Microsoft Office logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries. Product names, logos, brands, and other trademarks featured or referred to within this website are the property of their respective trademark holders.