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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T09:12:38+00:00 2026-05-29T09:12:38+00:00

SELECT NON EMPTY {[Measures].[Page Views]} ON COLUMNS, NON EMPTY { Crossjoin({[Date Dim.Weekday Hierarchy].[Weekday].Members}, {[Time

  • 0
SELECT 
NON EMPTY {[Measures].[Page Views]} ON COLUMNS,
NON EMPTY {
    Crossjoin({[Date Dim.Weekday Hierarchy].[Weekday].Members}, 
              {[Time Dimension.Time Hierarchy].[Hour].Members})
          } ON ROWS
FROM [All Facts]

Is code to get the page views per weekday. It currently returns data like this:

Sunday
……0 – 198273
……1 – 123987
……2 – 128372
……3 – 1283712

for each hour, for each day.
How do I get this to concatenate the strings from the crossjoin, so that it returns:

Sunday 0 – 198273
Sunday 1 – 123987
Sunday 2 – 128372
Sunday 3 – 1283712

Or must this be created as a totally new measure?

  • 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-05-29T09:12:38+00:00Added an answer on May 29, 2026 at 9:12 am

    Found a solution:

    > WITH MEMBER [Measures].[pretty hour] AS [Date Dim.Weekday Hierarchy].[Weekday].CurrentMember.name || " " || [Time Dimension.Time Hierarchy].[Hour].CurrentMember.name 
    >   SELECT    
    >   NON EMPTY {[Measures].[pretty hour], [Measures].[Page Views]} ON COLUMNS,   
    >   NON EMPTY {    
    >       Crossjoin({[Date Dim.Weekday Hierarchy].[Weekday].Members},     
    >                 {[Time Dimension.Time Hierarchy].[Hour].Members})   
    >             } ON ROWS   
    >FROM [All Facts]
    

    You have to ignore the row headers, but it produces the result I wanted! 🙂 @icCube had the right-ish idea, just Mondrian needed || instead of +, and “CurrentMember.name” instead of just “name”

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

Sidebar

Related Questions

I have a correct MDX-query: SELECT NON EMPTY { [Measures].[IssueOpened] } ON COLUMNS, NON
I currently have a query that looks like this: SELECT NON EMPTY ([Measures].[TOTAL]) ON
I have a query: select non empty order ([Item].Children ,([Measures].[Total Line Value] ,[January 2010])
I have a query: SELECT NON EMPTY { [Item].[123] } ON COLUMNS, { [Total
Can anyone point out how to check if a select query returns non empty
I'm using a query of the form: Select { ([Measures].[M1], [Time].[2000]), ([Measures].[M2], [Time].[2000]), ([Measures].[M1],
I create two members: MEMBER [Measures].[SegKey] as [Segment].[skSegment].Currentmember.Member_Key ,NON_EMPTY_BEHAVIOR =[Measures].[Allocated Site Trans Date Revenue]
I have two fields, but I want to return only the non-empty one. select
I select a number of non-clustered indexes from my database with the following: SELECT
Whilst asynchronous IO (non-blocking descriptors with select/poll/epoll/kqueue etc) is not the most documented thing

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.