March 23, 2018 at 11:34 am
Hey Folks,
I'm considering migrating a few of our solutions over to SSAS Tabular from Multidimensional to gain some performance in reporting and dashboarding. From initial tests everything works great, much faster, easier to develop, and we don't use drillthrough actions. My issue is in how I can handle an account ratio hierarchy in Tabular. Here are my thoughts:
March 23, 2018 at 1:36 pm
This sounds similar to something I just did. I have a "measures" dimension and a fact table that has two measures: Amount and Denominator. If denominator is blank I use 1 for the non-ratios. The measures dimension has rollup capability also. I have an "IsTotal" hidden attribute in the dimension which says whether it is the value that rolls up. Hope this helps.
March 23, 2018 at 1:47 pm
Right, I was thinking this is the right direction, but I'm curious how I'd handle the per day items. Thinking of Volumes Per Day, you could have:
March 23, 2018 at 2:18 pm
That's right. That's the reason for keeping Amount and Denominator separate. Create a measure for each and hide them. Then the final measure is Amount/Denominator.
DAX pseudo-code:
CALCULATE(DIVIDE([Amount], IF(ISBLANK([Denominator], 1, [Denominator]))))
[Amount] := SUM(Amount)
[Denominator] := SUM(Denominator)
Denominator is blank for non-ratios.
DAX may not be precise but that's the general idea. My formula actually has a lot more in it than that for other requirements. You may end up needing some filter context manipulation also.
One catch to this approach though...one measure is one data type. I just used decimal and then manually format the numbers. We're using Excel and it remembers the formatting at a tuple. It works for our purposes.
March 23, 2018 at 2:35 pm
So just expanding my thought process here, cause this will work. I would have to really increase the size of the fact table due to each dimensions requirement. Entity, account, accounting period, activity period, gross/net, hmn. I'll take this away and see what I can virtualize or normalize down.
Viewing 5 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic. Login to reply