Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
8 years ago
Solved

Measure in a Measure

OK I know this is stupid I'm just hitting a wall and my brain is fried. I must be searching for the wrong thing. I have two tables such as:   Event Table Event Metric Component Date/Time Yea...
  • Vvelarde's avatar
    Vvelarde
    8 years ago

    Anonymous

     

    For the tricky part you can use this measure:

     

    Measure =
    AVERAGEX (
        SUMMARIZE (
            Table1;
            Table1[Year];
            Table1[Month];
            "CustomSum"; SUM ( Table1[Customers] )
        );
        [CustomSum]
    )

    Now you need to combine the measure with the other simple measure to evaluate the context and show what you want.

     

    Regards

     

    Victor