Think

Hello there,

I’ve been trying to drive people in my team to think and not just do what they are asked to do. I want to do exactly the same here in this post. Show you that think is the best way.

Today, people are driven to do the tasks and sometimes they don’t find space to think on what they are doing neither better ways to do it.

When you have to create several metrics, what do you normally do? Probably you check if the project has the facts and attributes and you start building the metrics as there were no tomorrow.

Let’s think about this metric creation task. Have you ever thought that we could create metrics using the advanced metric option in MSTR Developer and that could save a huge amount of time?

Last week, I had a task to create approximately 80 metrics and I realized that I could do it in a better way. See that I used the word realized? Instead of just start doing the task, I first stopped for a moment, and thought in better ways to perform those creations. The metrics needed filters, a count function and the value format to be as a percentage.

1. Filters: do you know that filters can be created using command manager? Yes, we can do it with CM. Here is the script:

CREATE FILTER “NameOfTheFilter ” IN FOLDER “\Public Objects\Filters” EXPRESSION “Attribute@DESC= ^” value to be filtered ^” ; ON PROJECT “MicroStrategy Tutorial”;

With this script, you will save a lot of time right clicking and left clicking your mouse to create and save a new filter. Using the advanced filter in Developer, you can add the metrics/filters/transformations and MicroStrategy will create the combination of them with just a single click of your mouse. This feature will let you go home earlier that day.

2. Base formula: Think about creating a base formula for your metrics. This way you won’t need to create a new expression every time that you have to create a new metric.

In java, we are driven to reuse the classes and method. It’s not a good idea to create new line of codes if you are have them. Reuse, don’t rewrite the same piece of code multiple times. That’s the reason why Jave has methods.

The same concept applies to MicroStrategy. We are good to say that with MicroStrategy we can reuse objects. That’s not stands true if you don’t use it.

Let’s think about using base formulas to create the metrics so they will be consistent and we can reuse the formulas in multiple objects.

3. Find and replace: do you know that we can format a bulk of metrics with just a few clicks? If you go to Tools -> Find and Replace in Developer, you will see that we can easily change the format of the metrics. This way, you will also save a LOT OF TIME.

This is just an example that confirms that think and do is better than just do.

I hope I’ve encouraged you to think…

God bless you.

6 thoughts on “Think

  1. Philippe

    Good article, like always, but I have a question. In which situations do you use base formulas? I’ve tried getting people to use that feature, but I struggle finding good examples for when to use them and when not.

    Like

    Reply
    1. Felipe Vilela Post author

      Hi Philippe, thank you! I prefer to use base formulas when we have a set of metrics based on the same fact using the same function. Let me give you an example: We are working on a project that have more than 300 metrics that are based on the same fact and we are performing a count on that fact. We are just changing the filter condition. Base formula for this scenario is crucial, since they might want to change the structure of the metrics and we will be able to do it easily with the base formula. If you have a one-to-one (1 fact for 1 metric), don’t use base formulas. Go with the regular metrics. I hope it helps.

      Like

      Reply
      1. Philippe

        Hi Felipe, thanks for your quick response and this explains why it was so hard for me to find examples, we almost never have the situation, where a fact is used for more than 1-2 metrics.

        Like

  2. Nitin korade

    Hi Felipe,

    Thank you for such a nice blog. I had the same situation where I have to create n (4000)number of metric, the only thing I had was facts. I had to create filter, base formulas and metrics. I have achieved the same using python, excel and command manager. This whole process saved my 40 hrs. It’s true we have to think something different from our regular activities.

    Liked by 1 person

    Reply

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.