Forum Discussion
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 for 1 it should be in yellow. The rest should be blue. I also want to see type names as labels or tooltips.
I played a little bit with the visualization but couldn't find how to make it. Could you help me for it?
The power bi file is available at:https://www.dropbox.com/s/7pa2hs79q0d3wvg/10-22.pbix?dl=0
Thanks in advance!
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:
5 Replies
- v-lionel-msftCommunity Support
Hi IF ,
I'm not sure if this custom visual can add a conditional formula to the data color, if so, please create the following measure.
Data Color = SWITCH( MAX([Drive]), 7, "Red", 0, "Purple", 1, "yellow", "Blue" )Best regards,
Lionel ChenIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- IFPost Prodigy
Hi,
I tried but couldn't have the result. The file is at dropbox. Could you try since I may do some mistakes?
Best
- MFelixSuper User
Hi IF ,
In the usage of synoptic panel you have to pay attention that each area of your chart will be mapped to an area, in this case you need to make the match between the areas and your LC:
Now you need to setup the synopic panel in the following way:
Category: LC
Measure: Min of drive
States Measure: Min of drive
Turn on states:
Comparision =
State A Purple 0
State B Red 7
State C Yellow 1
See result below and in attach PBIX. Also adding the SVG file:
Be aware that I'm using the MIN value but this can be change to a measure that you need you just need then to adjust the states to follow that measure.