简体   繁体   中英

How to view customer count by transaction count in OLAP using mdx or how to reverse view dimension and measures

I have a sales transaction fact table and customer dimension table. I have transaction-count as a measure.

I want my report as:

No. of Time Transaction doing   Customers    Transactions
1                                10                10
2                                6                 12
3-6                              5                 ??

How can i achieve this in OLAP using mdx or even using excel but mainitaining pivot table structure.

You may create measures like this:

With
Member [Measures].[Customers with 1 transaction] as
Sum(
    existing [Customer].[Customer].[Customer].Members,
    IIF(
        [Measures].[TransactionCount] = 1,
        1,
        NULL
    )
)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM