![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi, I worked a little with Analysis Services and OLAP cubes, but I didn't worked a lot with MDX expressions. When I had to do Calculated members it was just kind of [Measures].[Total] - [Measures].[Other Total]. The problem I get now, is that I need to do a SUM or a COUNT with a calculated member, and I really don't know how to do this. What I want to do, is to count the number of rows in the fact table that match a certain criteria (for example, fact_table.nb_minutes <> 0). So what I want to to is a kind of COUNT IF on the fact table rows. I would use that to calculate an averge for cases where nb_minutes <> 0 to have a coherent average. Can Someone help me ? This problem occured many times, but it was always reported to later, but I really want to solve it now. -- Philippe Meunier Programmer CHCA Computer Systems Inc. |
#3
| |||
| |||
|
|
-----Original Message----- Hi, I worked a little with Analysis Services and OLAP cubes, but I didn't worked a lot with MDX expressions. When I had to do Calculated members it was just kind of [Measures].[Total] - [Measures].[Other Total]. The problem I get now, is that I need to do a SUM or a COUNT with a calculated member, and I really don't know how to do this. What I want to do, is to count the number of rows in the fact table that match a certain criteria (for example, fact_table.nb_minutes <> 0). So what I want to to is a kind of COUNT IF on the fact table rows. I would use that to calculate an averge for cases where nb_minutes <> 0 to have a coherent average. Can Someone help me ? This problem occured many times, but it was always reported to later, but I really want to solve it now. -- Philippe Meunier Programmer CHCA Computer Systems Inc. . |
![]() |
| Thread Tools | |
| Display Modes | |
| |