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 7934321
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T21:36:46+00:00 2026-06-03T21:36:46+00:00

I have created a calculated member that assigns customer type. The problem is that

  • 0

I have created a calculated member that assigns customer type. The problem is that it shows every single member from customer dimension and I have too little experience to fix it.

I want to show only customers that actualy ordered.
e.g. [Measures].[Total Amount]>0
for currently selected period. e.g. current year. ([Basic Calendar].[Year – Week – Date])

Please advise and see formula below.

CREATE MEMBER CURRENTCUBE.[Measures].[Customer Type]
 AS IIF( [Measures].[Orders by Customer]=0, "Zero Customer",
            IIF( [Measures].[Orders by Customer]=1, "One Off Customer",  
            IIF([Measures].[Orders by Customer]>1 and [Measures].[Orders by Customer]<4 , "2 to 3 Orders", 
            IIF([Measures].[Orders by Customer]>3 and [Measures].[Orders by Customer]<6,  "4 to 5 Orders", 
            IIF([Measures].[Orders by Customer]>5, "VIP Customer",  "Other"))))), 
VISIBLE = 1  ;   

Many thanks

  • 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-03T21:36:48+00:00Added an answer on June 3, 2026 at 9:36 pm

    Just add an ’empty’ condition that returns null:

    CREATE MEMBER CURRENTCUBE.[Measures].[Customer Type]
     AS
                IIF( IsEmpty([Measures].[Orders by Customer]), null,
                IIF([Measures].[Orders by Customer]=0, "Zero Customer",
                IIF( [Measures].[Orders by Customer]=1, "One Off Customer",  
                IIF([Measures].[Orders by Customer]>1 and [Measures].[Orders by Customer]<4 , "2 to 3 Orders", 
                IIF([Measures].[Orders by Customer]>3 and [Measures].[Orders by Customer]<6,  "4 to 5 Orders", 
                IIF([Measures].[Orders by Customer]>5, "VIP Customer",  "Other")))))), 
    VISIBLE = 1  ; 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have created a system that will be calculating data every month based on
I have created an application that does the following: Make some calculations, write calculated
I have created a mac application using the WebView. But issue is that webView
I have created a facebook apps. It works fine for me. But my problem
I have at current the, calculated member create member [017SKY_DATAWAREHOUSE].[Measures].[ConversionTest] as ([Measures].[Lead Count] ,[Origin].[Origin].[Origin
I need to use a value, selected from database table, in my Calculated member
I'm drawing graphs with force-directed layout, and the problem is that the created graphs
I have created a text field component with an 'x' button inside that will
i have DataBase function that calculate distance by coordinates CREATE OR REPLACE FUNCTION distance(lat1
Have created a c++ implementation of the Hough transform for detecting lines in images.

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.