Forum Discussion

fabiomanniti's avatar
fabiomanniti
Icon for Helper III rankHelper III
4 years ago
Solved

Visual to show data change in time

Hello, I would like to know if there is a visual I can use to measure the variation of a certain quantity month by month possibly splitted by category. Example I have a table  ID Subscription ...
  • v-zhangti's avatar
    v-zhangti
    4 years ago

    Hi, fabiomanniti 

     

    If you don't process the data in advance on the desktop, you won't get your desired results directly through the visuals.

     

    Maybe you can try the following methods.

    Column:

    last date = DATEADD('Table'[Subscription date],-1,MONTH)

    Measure:

    Difference =
    VAR N1 =CALCULATE (
            SUM ( 'Table'[Value] ),
            FILTER ( ALL ( 'Table' ),
                [Country] = MAX ( 'Table'[Country] )
                    && [ID] = MAX ( 'Table'[ID] ) ) )
    VAR N2 =CALCULATE (
            SUM ( 'Table'[Value] ),
            FILTER (  ALL ( 'Table' ),
                [Country] = MAX ( 'Table'[Country] )
                    && [Subscription date] = MAX ( 'Table'[last date] ) ) )
    RETURN DIVIDE ( N1 - N2, N2 )

     

    Best Regards,

    Community Support Team _Charlotte

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.