Forum Discussion

IF's avatar
IF
Post Prodigy
5 years ago
Solved

synoptic visualization for recent date/time

Hi, I want to use synoptic visualization for the visualization of my data. in my data, the most recent data for each type is: If Drive is 7, I want to see it in red color, for 0 purple and fo...
  • MFelix's avatar
    MFelix
    5 years ago

    Hi IF ,

     

    You can create the following measures:

    Drive Value = 
    VAR maximumdte =
        MAX ( 'Table'[Date] )
    VAR temptable =
        SUMMARIZE (
            FILTER (
                ALL (
                    'Table'[Date],
                    'Table'[Drive],
                    'Table'[Layer],
                    'Table'[LC],
                    'Table'[Type]
                ),
                'Table'[Date] = maximumdte
                    && 'Table'[LC] IN VALUES ( 'Table'[LC] )
            ),
            'Table'[Date],
            'Table'[Drive],
            'Table'[LC],
            'Table'[Type]
        )
    RETURN
        SUMX ( temptable, 'Table'[Drive] )

     

    Type Value = 
    VAR maximumdte =
        MAX ( 'Table'[Date] )
    VAR temptable =
        SUMMARIZE (
            FILTER (
                ALL (
                    'Table'[Date],
                    'Table'[Drive],
                    'Table'[Layer],
                    'Table'[LC],
                    'Table'[Type]
                ),
                'Table'[Date] = maximumdte
                    && 'Table'[LC] IN VALUES ( 'Table'[LC] )
            ),
            'Table'[Date],
            'Table'[Drive],
            'Table'[LC],
            'Table'[Type]
        )
    RETURN
        MAXX ( temptable, 'Table'[Type] )

     

    The first measure must be used in the measure and state measures of the synoptic panel the other one is to use on the tooltip: