Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Coloring maps

Hello, all !

Help pls, I have a sales table by points for the Floating period. All dates are the dates of the last day of the month, except the last, that is, 2018 December - 2018/12/31 , 2019 January - 2019/01/31, 2019 February - 2019/02/15.

Like a table :

datetradePointsales
31.12.19A10
31.12.19F10
31.12.19B5
31.12.19D10
31.01.19D5
31.01.19G0
31.01.19C10
31.01.19E5
15.02.19A10
15.02.19C5
15.02.19D10

 

In this case, it should be the following coloring, Green color: A,C,D ; Red Color: B,E,F ; Blank: G

 

Task:
1. It is necessary to paint the dots on the map green if sales were in the finish month.
2. If there were sales in the last month, excluding the last month, then red (but you need to take into account that in the first paragraph some points should already be painted in green color)
3. If the not be sales at these points, then empty

I I tried to do it like this: if 1 - red , 2- green, on the map.

Indicator = IF( CALCULATE(SUM([Sum]);
FILTER(Data_query; Data_query[period] = [MaxDate]))>0;2;
IF(CALCULATE(SUM([Sum]);
FILTER(Data_query; Data_query[period] <= EOMONTH([MaxDate];-1) && Data_query[period] >= MIN(Data_query[period])))>0;1;BLANK()))

But total value , only "2" 

Maps coloring_1.JPG

 

 

 

 

 

 

 

 

 

 

 

 

 

 

If you have any ideas how to get: 1,2, and blank() please write measure

 

Thank you in advance

 

2 REPLIES 2
v-yuta-msft
Community Support
Community Support

@Anonymous ,

 

I would suggest you to refer to conditional formatting.

https://docs.microsoft.com/en-us/power-bi/desktop-conditional-table-formatting

 

Community Support Team _ Jimmy Tao

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

Anonymous
Not applicable

@v-yuta-msft  Hi,

 

I know how to use formatting. 
My problem is that I can not divide the pool of points into 3 parts; points of this month should be active (green), but because the report uses a filter; I do not know for what period there will be a data set, and points that were not active this month, but had sales (red), the rest, which did not have sales or were negative sales, should not be displayed. The visual element "Map" does not take into account the data for the month, which it views the total. If you look at the last picture, then everything will become clear to you. Instead of dividing for parts, the measure gives only one value for the totals, and not what I need.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.