Quantcast
Channel: SQL Server Analysis Services Forum
Viewing all articles
Browse latest Browse all 2472

Grouping by a Non dimension field in the fact table

$
0
0

I apologize in advance if I did not word the title correctly.  Basically I'm trying to group by the attempts on a phone number and pivot on those attempts and summing the call duration.

In T-sql i currently group the records into attempts as such:

yearmonthcall_attemptscall_duration
20121114
20122128
20122314
20121545
20121122
2012329
201226135

I then pivot the results out by attempt and summing the duration:

yearmonth123456
20121324377419747931227519768413431929244010
2012224009851022634735852487300234704131903
2012310987561464232744269091256132

Can something like this be done simply in SSAS and if so does anyone know how to go about doing it?  Currently the Date is a dimension and the call duration is a measure.  The phone number is in the fact table but currently unused and I'm not sure how i would go about using it in this case to get what I'm looking for.



Viewing all articles
Browse latest Browse all 2472

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>