Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
2 years ago
Solved

Normalising a Time Series with Date Hierarchy

Hey all,   Please allow me to thank you for reading this post. I have tried working on this problem for a full day with no results. I tried looking up other similar posts but could not find any.  ...
  • OwenAuger's avatar
    2 years ago

    Hi Anonymous 

    I think a visual calculation would work quite well here, since it calculates correctly regardless of the field on the chart's axis.

     

    The traditional measure-based approach would need to detect the granularity of the axis, which is possible but a little tedious.

     

    For visual calculations, you could create a visual calculation like this (assuming Revenue_Sum is the underlying measure):

     

    Revenue Normalised = 
    VAR MinRevenue = MINX ( ROWS, [Revenue_Sum] )
    VAR MaxRevenue = MAXX ( ROWS, [Revenue_Sum] )
    VAR CurrentRevenue = [Revenue_Sum]
    VAR Result = DIVIDE ( CurrentRevenue  - MinRevenue , MaxRevenue - MinRevenue )
    RETURN
        Result

     

    Small example PBIX attached.

    Would you be happy with this approach or would you like an example of a traditional measure-based approach?

     

    Regards