en
Welcome Guest! To enable all features please Login or Register.
Options
Go to last post Go to first unread
Lotte Bjørn Jensen  
#1 Posted : Monday, September 30, 2019 9:43:06 AM(UTC)
Lotte Bjørn Jensen
Rank: Advanced Member

Groups: extranet\Forum
Joined: 4/12/2019(UTC)
Posts: 41

Hi

If data for "actual" in previous month is zero I need to use data from previous month minus 1.

Do you know a smart way of doing it, and still keeping the dynamic dates?

UserPostedImage

Can I somehow hide the columns "Sep 2019" and "Jan-Sep 2019" if sum(d1,all,m1) = 0?

BR
Lotte

Ole  
#2 Posted : Tuesday, October 1, 2019 7:36:32 AM(UTC)
Ole
Rank: Administration

Groups: extranet\Forum
Joined: 4/7/2011(UTC)
Posts: 497

Hi Lotte,

That should be possible with a visibility agent (hide user dimension member) with the condition:

(sum(d1, all, m1) = 0 and allcount(d1:0, d1, m1 = 1) or (sum(d1, all, m1) = 0 and allcount(d1:0, d1, m1 = 3)

Use an opposite visibility agent to hide columns if first column contains data:

(sum(d1, all, m1) <> 0 and allcount(d1:0, d1, m1 = 2) or (sum(d1, all, m1) <> 0 and allcount(d1:0, d1, m1 = 4)

Calculated columns could be modified with a Visibility modifier:

Actual Month = sum(d1:d2(v), 0, m1)

BR / Ole
Ole Dyring
Lotte Bjørn Jensen  
#3 Posted : Tuesday, October 1, 2019 9:03:49 AM(UTC)
Lotte Bjørn Jensen
Rank: Advanced Member

Groups: extranet\Forum
Joined: 4/12/2019(UTC)
Posts: 41


Thank you, Ole - just what I was looking for.

Absolutly perfect (After adding a couple of brackets ;o))

BR
Lotte
Users browsing this topic
Anonymous
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Notification

Icon
Error

We use cookies to improve your site experience, but they also provide us with information on your use of our website.
To find out more about the cookies we use and how to delete them, see our Privacy Policy. By continuing to browse the site, you are consenting to our use of cookies.

ok