Closed Thread
Results 1 to 2 of 2

Powerpivot - Filtering in DAX Formulas

  1. #1
    Registered User
    Join Date
    06-15-2017
    Location
    Vancouver, BC
    MS-Off Ver
    2016
    Posts
    1

    Powerpivot - Filtering in DAX Formulas

    Hello everyone,

    I'm having a problem trying to get my DAX formula to work properly. I have a set of data on C02 emissions, greenhouse gas, and population (with some nulls), by year and country. I am trying to calculate Emissions per Capita, then segment them into 3 groups.

    1) Low Emitters <= 0.005 kt
    2) Medium Emitters >0.005, <0.015
    3) High Emitters >= 0.015

    The first and third segments work:

    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Here is the formula for "Formula"

    Please Login or Register  to view this content.
    but the middle segment isn't giving me the values I want. It'll show me all the values above 0.005 in the pivot table

    Please Login or Register  to view this content.
    It seems like it will use the first filter (>0.005) but ignore the second (<0.015).

    Is there a solution to this?

    Thank you very much for your help!

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,879

    Re: Powerpivot - Filtering in DAX Formulas

    Closed per OP request.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Allow use of Slicers on PowerPivot to be used by users without PowerPivot
    By weeble33 in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 01-09-2017, 05:19 PM
  2. Why create formulas for last month in powerpivot?
    By stephme55 in forum Excel General
    Replies: 1
    Last Post: 07-12-2016, 09:38 PM
  3. using regular excel formulas in powerpivot manage data
    By stephme55 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 02-09-2016, 02:47 PM
  4. filtering in powerpivot
    By stephme55 in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 01-29-2016, 06:03 PM
  5. Replies: 4
    Last Post: 07-23-2015, 03:35 PM
  6. Replies: 2
    Last Post: 06-02-2014, 09:34 AM
  7. Replies: 0
    Last Post: 11-20-2012, 05:34 AM

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1