Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8537265
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T10:51:37+00:00 2026-06-11T10:51:37+00:00

Building on a previous question , I am trying to achieve the following result

  • 0

Building on a previous question, I am trying to achieve the following result set to use in an SSRS 2008 report.

       Utilisation  New Measure
Apr-12    70.7%        70.7%
May-12    74.5%        74.5%
Jun-12    74.6%        74.6%
Jul-12    76.7%        76.7%
Aug-12    79.5%        79.5%
Sep-12    78.5%        (null)
Oct-12    79.0%        (null)
Nov-12    79.6%        (null)
Dec-12    78.9%        (null)
Jan-13    79.7%        (null)
Feb-13    79.0%        (null)
Mar-13    79.4%        (null)

The MDX query I have so far is as follows:

WITH MEMBER [Measures].[New Measure]
    AS IIF(
        ISEMPTY(
            EXISTS(
                    [Date].[Fiscal Year-Month].[Fiscal Month].CurrentMember
                    , {[Date].[Fiscal Year-Month].[Fiscal Month].&[2012/13]&[1]
                      :[Date].[Fiscal Year-Month].[Fiscal Month].&[2012/13]&[5]}
                   )
                )
            , NULL
            , [Measures].[Utilisation]
           )
           , FORMAT_STRING = "0.0%"

SELECT      {
            [Date].[Fiscal Year-Month].[2012/13].children
            } ON ROWS

            , 
            {
            [Measures].[Utilisation]
            , [Measures].[New Measure]
            } ON COLUMNS

FROM        [Elective]

Though the New Measure returns the same results as the utilisation measure and does not return Nulls for the months I don’t want the values for.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T10:51:38+00:00Added an answer on June 11, 2026 at 10:51 am

    You’re close but don’t have the syntax quite right. Try this:

    WITH MEMBER [Measures].[New Measure]
        AS IIF(
                 EXISTS(
                        {[Date].[Fiscal Year-Month].[Fiscal Month].&[2012/13]&[1]
                        :[Date].[Fiscal Year-Month].[Fiscal Month].&[2012/13]&[5]},
                         [Date].[Fiscal Year-Month].[Fiscal Month].CurrentMember
                       ).Count = 1
                , [Measures].[Utilisation]
                , NULL
               )
               , FORMAT_STRING = "0.0%"
    
    SELECT      {
                [Date].[Fiscal Year-Month].[2012/13].children
                } ON ROWS
    
                , 
                {
                [Measures].[Utilisation]
                , [Measures].[New Measure]
                } ON COLUMNS
    
    FROM        [Elective]
    

    With the EXISTS function, the first argument is the full set to check – the date range you want values to display for – and the second argument is the current member on rows, so you need to do the opposite of what you originally tried. The EXISTS function returns a set, so you can use the COUNT function to see if the set has something (the current member), which should be only 1 when there is a match. The reason the ISEMPTY is not working for you is that the MDX is including the current measure in the calculation and when the value exists for the current date member and the Utilisation measure, the expression resolves as false and returns Utilisation.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

After what I learned from my previous question , I would like to use
I'm working on building Cppcheck on AIX with the xlC compiler (see previous question
Building on my previous question I'd like to add second axis label on the
Just building on top of my previous question here: Rewriting a JSON string -
This is problem #2 from this previous question: Inheritance in Arduino Code Building off
I'm building a music player that needs a next and previous button. My playlist
I'm building a ASP.net quiz engine and I'm using a previous quiz engine i
Building a new Mobile Web Platform for Mobile Users to purchase & download content
Building a new ASP.net application, and planning to separate DB, 'service' tier and Web/UI
This IS NOT a Homework question! While building my current student database project I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.