How to sum only the positive numbers in a Pivot table when using Power Pivot

Hi, I have this schema:
…and this Pivot:
How do I get this result from PowerPivot.
If I only use normal Excel Pivot I could use Calculated Field and get the wanted result in a snatch.
But I guess the problem with using PowerPivot in this scenario is a context or/and a aggregation problem?
Here is the formula I try to use (I have also tried the FILTER function but couldn’t get it right):
TRUE DEMAND (Forecast- Stock>0) =
CALCULATE([TOTAL DIFF (FORECAST-STOCK)],
[TOTAL DIFF (FORECAST-STOCK)]>0)
Here is my ExcelFile:
https://onedrive.live.com/redir?resid=B7906DD091ACC085!357&authkey=!AJN_r_1NCP4thrE&ithint=file%2cxlsx
Any suggestions?
Best Regards
Tommy

Hi Tommy,
sorry, a few words are not enough.
This post does explains it in detail:
http://sqlblog.com/blogs/marco_russo/archive/2010/01/03/how-calculate-works-in-dax.aspx
Imke

Similar Messages

  • How to export the created Pivot table by using Power Pivot into separate excel file in the same format?

    Hi PowerPivot experts,
    I have created more than 60 pivot tables in multiple sheets by using PowerPivot work book. now i want delivery all the pivot table in excel document to my end user by email.
    I want send only the Pivot tables which i created using PowerPivot data model instead of sending the whole model file since its very heavy.
    I have tried with export option in Excel 97-2003, its works fine but not getting exact pivot format which i created and its displays as value.
    My aim to send pivot table that i created format but not whole file with source data.
    I would be really grateful if advise me to fix it out.

    Hi Robert,
    I don't think it is a good idea to deliver all PivotTable report to end user via E-mail, and SQL Server PowerPivot for Excel doesn't support to deliver PivotTable report to end user without PowerPivot data inside in the data model. For example, I suppose
    we create a PivotTable to display the SalesAmount of US in pervious years(eg:2012, 2013, 2014), how can we dynamic show the value based on end user selection without PowerPivot data model data(The PivotTable report don't have data source)?
    So, one workaround that we can create a shared folder to store all of PowerPivot report for all of end user in the domain environment, and then inform end users to copy the PowerPivot reports what they want via E-mail.
    If the end users aren't in domain environment, we can implement the VPN soltion to achieve this.
    Regards,
    Elvis Long
    TechNet Community Support

  • How do i stop the rainbow coloured circle from appearing especially when using IPhoto?

    how do i stop the rainbow coloured circle from appearing especially when using IPhoto?

    Back up all data immediately as your boot drive may be failing.
    If you have more than one user account, these instructions must be carried out as an administrator.
    Triple-click anywhere in the line below on this page to select it:
    syslog -k Sender kernel -k Message CReq 'Channel t|GPU D|I/O|Previous Sh' | tail | open -ef
    Copy the selected text to the Clipboard (command-C).
    Launch the Terminal application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.
    Paste into the Terminal window (command-V).
    The command may take a noticeable amount of time to run. Wait for a new line ending in a dollar sign (“$”) to appear.
    A TextEdit window will open with the output of the command. If the command produced no output, the window will be empty. Post the contents of the TextEdit window (not the Terminal window), if any — the text, please, not a screenshot. The title of the window doesn't matter, and you don't need to post that.

  • HT4589 How do I change the audio to dual mono from stereo when using Share to DVD in Final Cut 10.1?

    How do I switch the audio to Dual Mono from Stereo when using Share in Final Cut Pro 10.1? Even though the audio is all in dual mono in the timeline, it lists it as stereo in the share box.

    Hi rationale1,
    Welcome to the Support Communities!
    The share to DVD settings in Final Cut Pro X use the Dolby Digital settings which are stereo for DVDs. So this can’t be done directly in Final Cut Pro X.
    The link below will explain the Dolby Digital parameters and options in Compressor 4.   You may need to research a different DVD authoring software to achieve your desired result.
    Dolby Digital - Compressor 4 User Manual
    http://help.apple.com/compressor/mac/4.1/#cpsrb71736a2
    Dolby Digital
    The built-in Dolby Digital settings (in the Create Blu-ray and Create DVD destinations, as well as the built-in AC-3 and EC-3 audio settings) use the Dolby Digital transcoding format. This format encodes Dolby Digital (AC-3) and Dolby Digital Plus (EC-3) audio files that contain multiple audio channels, including 5.1 surround sound. You can also create custom settings that use the Dolby Digital transcoding format. 
    Note:  All files intended for video and audio DVD authoring must have a 48 kHz sample rate as required by the DVD specification.
    DVD Video: Choose this option if you’re encoding for use in a DVD video authoring application.
    DVD Audio: Choose this option if you’re encoding for use in a DVD audio authoring application.
    Tip:  For stereo encoding, rates of 192 kbps and 224 kbps are typical and will produce good results. For Dolby Digital 5.1 encoding, a rate of 384 kbps is recommended. For 5.1 Dolby Digital Plus encoding, a rate of 192 kbps is recommended.
    Cheers,
    Judy

  • How can I disable the printing out of zone.property vars when using jpdk test page?

    I have had a tar in on this question for two weeks now. Since
    the only response I have gotten is wip, I was hoping someone
    here might have some ideas.
    When I run the /servlet/sample page after setting up my JPDK, it
    runs just fine. HOWEVER, it displays all the initargs that I
    have in my zone.properties on the screen. I don't want these
    args to be seen.
    How do I disable the display of initargs on the /servlet/sample
    test page?
    For example, this is what displays:
    Congratulations! You have succesfully reached your Provider's
    Test Page.
    Checking for components:
    Portlets are:
    Test
    FilePortlet
    SystemNav
    Oracle Jsp detected
    Recognizing initArgs: Usual initArgs are provider_root and
    sessiontimeout
    snode http://sys/home
    pswd snvs
    uname sysa1
    debuglevel 1
    I do not want the initArg variables to show up on this page,
    since I have username and password variables that I use in my
    servlets.
    Any ideas will be appreciated.

    I got a reply on my tar.
    Apparently I have to edit the HttpProvider.java to change this
    behavior.
    Regards.

  • How do I prevent the Lion boot partition from being reformatted when using boot camp?

    Under Windows 7, Computer Mgt, I shrink the C drive to create another drive.  When I right click on the unused drive to format it, 200MB Lion boot is formatted and assigned a drive letter F.  But I did not tell Windows 7 Computer Management to do that.  I clicked on the unused 170GB space to create it as F, I did not click on the 200MB Lion boot partition at the front of the list.
    Now I have to take the computer back to the Apple store to reinstall Lion for me.
    I tried this twice and it happened twice.  So now I need to go back to the Apple store a second time for help on the same problem.
    Would the 200MB Lion boot disk at the front be safe from reformatting if I first made it drive letter F, and then made the new drive letter H at the right side of the drive list in Computer Management?  Also, there is an unlettered drive between the Lion drive E and the Windows 7 drive C.  Should I make that G prior to formatting drive H?
    By the way, I did this on another MacBook pro that was using Snow Leopard, following the same procedure, and had no problems.  So could a different version of Boot Camp be the issue?

    I just found an older question similar to this one that you also replied to. It was from 2012 and never solved. The only things I am using in my set up is a male quarter inch cable from my guitar to my interface, a USB cable from my interface to my computer, and headphones from my interface to my ears of course. Just like in the other question I found I have everything in the Audio MIDI Setup of the computer set to use the interface as input and output and I also have everything in garage band setup to use the interface as audio input and output. Any new track is recording the metronome and any old track that is being played in the headphones. No external speakers are being used for monitoring and no microphones are being used.

  • How to fix Action Link Issue in Table and Pivot Table when used Section

    My OBIEE Version: OBIEE 11.1.1.6.5
    Issue Description: Action links (Navigate to BI Content) doesn't work in PIVOT TABLE or TABLE object when used Section area (one or more columns in Section area).
    If you want to recreate this issue please follow next steps:
    1.     First of all you have to create one analyse with min 3 columns (for example Time.“Calendar date“, Product.Product, „Base Fact“. Revenue -> from Sample Sales Lite )
    2.     From column properties -> Set value Action Link Interaction on some column for example Product.Product (choose Navigate to BI Content -> any created BI report )
    3.     Click Results Tab choose Pivot Table and assigned one dimension column to Section area
    4.     Click preview icon
    5.     When you click on action link nothing happens
    6.     If you drug and drop column from Section Area to Excluded, Table or Pivot table Area then Action Link works perfectly
    How to fix this issue?
    I'll be grateful for any help!

    This is Bug:15922681 - ACTION LINK NAVIGATE TO BI CONTENT DOES NOT WORK WITH ATTRIBUTE IN SECTION
    Upgrade to 11.1.1.6.6 will fix this issue.

  • KOBO device - how do I remove the email address associated to my authorization when using ADE?

    I have a KOBO aura. I changed service providers and the device uses Adobe Digital Editions to download books.
    I want to upload some new books but the email associated to the notifications is the old email address and when I want to de-authorize that email address I am prompted for a password that I no longer remember.
    Short of totally deleting my profile and starting from scratch, and losing what I have loaded on the device, is there any way to make this happen to just insert a new email?
    Help - since no one seems to have a contact phone number anywhere [either at Adobe or KOBO] and everything is done by users helping users.

    Have you tried Settings > iTunes and App Store, touched the Apple ID, logged out, and logged in with the Apple ID associated with the Apps that you wish to update?

  • How can i update the REMARK field in ADRT database table

    Hi all,
    How can i update the REMARK field in ADRT database table
    By using Function modules or BAPI’s
    Please reply me fast

    Hi,
    you can try this code:
        SELECT SINGLE * FROM KNA1 WHERE KUNNR = wa_kunnr.
        IF sy-subrc = 0.
          CLEAR adrct.
          SELECT SINGLE * FROM adrct WHERE addrnumber = kna1-adrnr.
          IF sy-subrc = 0.
            adrct-remark = wa_remark.
            MODIFY adrct.
          ENDIF.
        ENDIF
    best regards,
    Thangesh

  • How do I update only the page numbers of a table of contents in Indesign CS6?

    Hi there!
    Please help! I'm making a medical book with more then 1300 pages and about 40 different table of contents.
    I want to update only the page numbers on all the table of contents. But I only see the option to update the complete table of contents.
    I saw on other forums that this is a familiar and very old problem. Did Adobe already fixed this?

    hahaha thanks no I won't Using cross-references in the future! but sending the request anyway; nothing ventured, nothing gained!
    Thanks again!

  • Can't figure out how to sum only certain dates

    Hi all,
    Here is my issue: we use numbers to keep a running inventory of pieces in stock, and when a piece sells we mark it with the date sold. I'd love to be able to get a sum of monthly sales, but I can't figure it out. Would someone be kind enough to explain it to me like I was five? Here is a sample of our spreadsheet layout: http://i.imgur.com/sV1RU4s.png
    I can easily get a sum for the full column of C, but how do I enter the formula to sum only the sales from April, for instance.
    Thanks!!

    you can get function descriptions from Apple for free by downloading the function references here:
    http://support.apple.com/manuals/#productivitysoftware
    you will want to download the formula and function reference.
    OK...
    sumif() is a function that will sum values in a range based on a condition
    sumifs() is a similar function where multiple conditions
    both functions look at each row and only sum the values in a particular row when the condition(s) are all met.
    =SUMIFS(B,C,">="&E2,C,"<="&EOMONTH(E2, 0))
    let's work from the inside out...
    EOMONTH() returns the last day of the month you pass if offset by some number of months.  In this case I asked it to give the last day of the same month I passed in so the offset is 0.  The month I passed in is stored in E2.
    the basic concept is I only want to sum values in column B when the date in column C is in a paricular month.  said another way... I want to sum values in B where the corresponding date (in the same row) of column C is greater than or equal to the 1st day of the month AND is it also less than or equal to the last to of the month.
    SUMIFS() has several arguments a range to sum followed by a pair of arguments (test values range and a condition):
    SUMIFS(<SUM_RANGE>, <TEST_RANGE1>, <CONDITION1>, <TEST_RANGE2>, <CONDITION2>, etc )
    the sum range is column B
    test range 1 is the date column (column C)
    the condition is ">="&E1  which concatenates ">=" with the date in cell E1 to make a condition ">=Jan 1, 2013"
    test range 2 is the date column (column C)
    the condition is "<="&EOMONTH(E1, 0)  which concatenates "<=" with the date corresponding to the last day of the monthe in cell E1 to make a condition "<=Jan 31, 2013"
    I hope this helps

  • If I've lost or had my iPod nano 3rd gen stolen, how can i find the serial numbers? Nothing in iTunes but i am sure i linked them before...

    if I've lost or had my iPod nano 3rd gen stolen, how can i find the serial numbers? Nothing in iTunes but i am sure i linked them before...
    They are not listed as devices on the itunes store account...

    Hi BradSLane,
    Thanks for using Apple Support Communities.  This article has one method to find your serial number:
    Reporting a lost or stolen Apple product
    http://support.apple.com/kb/ht2526
    If you have lost or found an Apple product, please contact your local law enforcement agency to report it. Although Apple does not have a process to track or flag lost or stolen product, you can use My Support Profile to find a list of serial numbers that have been purchased or registered with your Apple ID.
    Go to My Support Profile*.
    Sign in with your Apple ID.
    View your purchases in "My Products".
    * Currently available only in certain languages.
    Note: If you need help remembering your Apple ID(s), go here.
    Take care,
    - Ari

  • How can I find the position of a robotic arm with a cFP-CTR card?

    Hello,
    I use a CTR-500 to measure the pulses of 3 encoders.
    The encoders are related to the 3 axis (x,y,z), to which a robotic arm is moving.
    Each encoder has 2 channels (A,B) which go to each pair of Count Inputs of the CTR card.
    When the robotic arm is moving on one axis, the corresponding pair of Count Inputs is increasing, but there is a phase between the one Count Input and the second one. What is more, the Count Inputs do not decrease when the robotic arm is moving to the other direction, but they still increase.
    So, I cannot find easily the position of the robotic arm.
    What I have done, is to try finding the position, by using only one Counter Input for each axis. This means that I use the value of the encoder as a counter, and I calculate the position with some software tricks. But for some reason, it does not work properly.
    I have heard that the method I use is not proper. Instead, I have been told that I must use the phase of the 2 Count Inputs, in order to find the direction to which the robotic arm is moving. But, the Count Inputs of the CTR are augmenting in parallel, when the robotic arm is moving forward or backward.
    How can I find the position of the robotic arm, as it is moving like a CNC ?
    Thank you very much.
    Message Edited by nikosfs on 08-21-2009 12:27 PM

    You don't want to use a cFP-CTR-500 card.  What you have are quadrature signals.  You should be using the cFP-QUAD-510.  It has 4 channels that can handle both the A and B signals of a quadrature encoder.  It has the built in circuitry do determine the phasing of A vs. B to know when to count up vs. count down.

  • How do I get the "Preserve Numbers" option back?

    I no longer have the option to Convert to Destination (Preserve Numbers) when exporting a PDF. I only have Convert to Destination or No Color Conversion. How do I get the "Preserve Numbers" option back? I have already tried quitting and relaunching InDesign and rebooting the workstation. When I try different versions of InDesign, I get the same results. When I try another computer, I have the "Preserve Numbers" option.

    See:Troubleshooting 101: Replace, or "trash" your InDesign preferences
    http://forums.adobe.com/thread/526990

  • HT1848 How do I transfer the songs from my desktop to my iPad using the same iTunes account? I can only sync the other way. Thanks

    How do I transfer the songs from my desktop to my iPad using the same iTunes account? I can only sync the other way. Thanks

    DaisyDoodle,
    The songs on your Shuffle should still be in your iTunes library.  That means you should just be able to connect your Nano to the same iTunes library and sync it just as you would with your Shuffle. There is no limit to the number of iPods, iPads, or iPhones you can sync to one computer, iTunes library, or account.
    As for preparing the Shuffle for your husband, just restore it via iTunes and then let him sync it to his own iTunes library or if its the same iTunes library, let him configure it to sync only his content.
    Here are instructions on how to restore the Shuffle if need be.
    http://support.apple.com/kb/ht1481
    B-rock

Maybe you are looking for