简体   繁体   中英

Non aggregate measure in cube

I have a FactTable with Flag, this flag is to differentiate records and its of boolean datatype . I have to get this field in the cube. I have created non aggregatable measure for this flag, but it shows blank/null when cube is browsed. I do not want to create degenerate dimension. I want the data to look like this.

Flag| Sales Local
1   | 35,450
0   | 22,000

Is there any other way to get this field into cube, or is it possible?

The 'dimensional way' to model flags is in a 'Junk' dimension:

Design Tip #113 Creating, Using, and Maintaining Junk Dimensions

A possible workaround would be to add whichever measure that might be required for this column in the cube itself. Eg Countfoo , Countbar , SumSalesLocalfoo and SumSalesLocalbar . But on the downside, you wont exactly get what you want. But you can get something like:

SumSalesLocalfoo| SumSalesLocalbar
35,450          | 22,000

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