Results 1 to 5 of 5

Thread: Group then show items only <> $0

  1. #1
    Acolyte ExcelQuestion's Avatar
    Join Date
    May 2018
    Posts
    23
    Articles
    0
    Excel Version
    Office 365

    Group then show items only <> $0



    Register for a FREE account, and/
    or Log in to avoid these ads!

    Dear Experts,

    Using Power Query, I was able to group item based on:
    1) [Date] <= "Cutoff Date" parameter input, AND;
    2) [Match ID] <> total $0

    Click image for larger version. 

Name:	Group.jpg 
Views:	19 
Size:	84.5 KB 
ID:	9103

    Trouble is...the user experience isn't intuitive for the common office environment. The user has to enter the "Cutoff Date", then Refresh.
    Huge risk...when the user doesn't Refresh but just prints the un-freshed report.
    Also, my actual Source Table is a larger dataset utilizing relationships...prefer not to Merge existing data into the Power Query just for this one report.
    Lastly, all my existing reports are DAX pivot tables...trying keep the same look and feel for the audience.

    How do you create the Power Query method using DAX pivot table? Definitely need to show the Cutoff Date as part of the pivot table.

    Thanks in advance,
    Ricky
    Attached Files Attached Files

  2. #2
    Seeker gue's Avatar
    Join Date
    Nov 2018
    Posts
    19
    Articles
    0
    Excel Version
    Office Professional Plus 2016
    for your first problem you could use the worksheet change event so that the user need not refresh
    Code:
    Private Sub Worksheet_Change(ByVal Target As Range)  
      
      If Target.Address = Me.Range("CutoffDate").Address Then ThisWorkbook.RefreshAll
    
    End Sub
    of course you have to change the xlsx file to a macro enabled xlsm file

  3. #3
    Acolyte ExcelQuestion's Avatar
    Join Date
    May 2018
    Posts
    23
    Articles
    0
    Excel Version
    Office 365
    Thank-you gue!

    Could this problem be solved using Power Pivot instead?

    Thanks again,
    Ricky

  4. #4
    Seeker gue's Avatar
    Join Date
    Nov 2018
    Posts
    19
    Articles
    0
    Excel Version
    Office Professional Plus 2016
    I dont think so.
    your data is already in a pivoted form. So you have to unpivot it first which means that you have to use power query and therefore a trigger event.
    If you want to use a slicer the problem is that the slicer uses only values out of your data and if you need a not available date as cutoff date you have either link a special table including all days or may be only last days of months but as I know you have again to trigger a refresh somehow.

  5. #5
    Acolyte ExcelQuestion's Avatar
    Join Date
    May 2018
    Posts
    23
    Articles
    0
    Excel Version
    Office 365
    Hi gue,
    You're right about the slicers.

    Suppose entering input cutoff date cell (as a separate table) then Refresh is acceptable, is there a DAX measure that show only the "Match ID" <>0?

    Thanks again,
    Ricky

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •