Forum Discussion
Anonymous
2 years agoNot applicable
Filled Map Conditional Formatting for aggregated amounts
Hi, I am having issues with conditional formatting within the Azure map visual for filled color. Essentially, the table I have records shipments and whether they were on-time, early, delayed. Th...
Anonymous
2 years agoNot applicable
Hi Anonymous ,
We suggest you create a measure to show the most shipment status per state:
Most Frequent Shipment Status =
VAR EarlyCount = CALCULATE(COUNTROWS('Table'), 'Table'[Shipment Status] = "Early", ALLEXCEPT('Table', 'Table'[State]))
VAR LateCount = CALCULATE(COUNTROWS('Table'), 'Table'[Shipment Status] = "Late", ALLEXCEPT('Table', 'Table'[State]))
VAR OnTimeCount = CALCULATE(COUNTROWS('Table'), 'Table'[Shipment Status] = "On-time", ALLEXCEPT('Table', 'Table'[State]))
RETURN
SWITCH(
TRUE(),
EarlyCount > LateCount && EarlyCount > OnTimeCount, "Early",
LateCount > EarlyCount && LateCount > OnTimeCount, "Late",
OnTimeCount > EarlyCount && OnTimeCount > LateCount, "On-time",
"Early"
)
Then use the measure to format the color as shown below:
Best regards,
Joyce
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
2 years agoNot applicable
Hi Anonymous !
Thanks for responding! This works for the highest level of data. However, when I filter by a dimensional table tied to this table, the visual is showing green for a state that only has a late order. Do I need to add something to the measure that accounts for each slicer on the page?