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
Josephine_UA
New Member

New measure for map color saturation, based on 2 categorical slicers and the last submitted value.

Hello,

I have a measure that works based on 2 slicers selected (SlicerNumericalQuestions[index], SlicerTrustedCoordinator[index])and map selection (Regions[ID_1]), and it works fine for a line chart with dates. However, if I put this measure to a map for color saturation it didn't color map at all.
So, now I need another measure that will work for the same 2 slicers, however, this measure should go as color saturation for a map, and it should show the last submitted data DataSets[_submition_time] per region DataSets[region] and not "sum" as in 1st measure.

Tables:

DataSets - big table with different data

Regions- table with unique regions for Map, that connects to a DataSet as 1 to many

Here is a measure that works for line chart:

 

 

 

 

TrustedSelection = 
if(ISCROSSFILTERED(Regions[ID_1]),
    if(ISCROSSFILTERED(SlicerNumericalQuestions[index]),
        if(ISCROSSFILTERED(SlicerTrustedCoordinator[index]),
            SWITCH( TRUE(),
            VALUES('SlicerNumericalQuestions'[index])=1, SUM(DataSets[trusted_no_1]),
            VALUES('SlicerNumericalQuestions'[index])=2, SUM(DataSets[trusted_no_2]),
            VALUES('SlicerNumericalQuestions'[index])=3, SUM(DataSets[trusted_no_3]),
            VALUES('SlicerNumericalQuestions'[index])=4, SUM(DataSets[trusted_no_4]),
            VALUES('SlicerNumericalQuestions'[index])=5, SUM(DataSets[trusted_no_5]),
            VALUES('SlicerNumericalQuestions'[index])=6, SUM(DataSets[trusted_no_6]),
            BLANK()
            ),
            SWITCH( TRUE(),
            VALUES('SlicerNumericalQuestions'[index])=1, SUM(DataSets[no_1]),
            VALUES('SlicerNumericalQuestions'[index])=2, SUM(DataSets[no_2]),
            VALUES('SlicerNumericalQuestions'[index])=3, SUM(DataSets[no_3]),
            VALUES('SlicerNumericalQuestions'[index])=4, SUM(DataSets[no_4]),
            VALUES('SlicerNumericalQuestions'[index])=5, SUM(DataSets[no_5]),
            VALUES('SlicerNumericalQuestions'[index])=6, SUM(DataSets[no_6]),
            BLANK())
        ),
    blank()),
blank())

 

 

 

 

1 REPLY 1
v-tangjie-msft
Community Support
Community Support

Hi @Josephine_UA ,

 

Based on your needs description, you have created a measure for a map of color saturation and you need to create another measure for the same 2 slicers, however, this measure should be the color saturation of the map, and it should show the last committed data dataset [_submition_time] for each area DataSets[region], not "sum" as in the first measure. I can get a rough idea of what you mean, but can you explain how the first measure you provide has to do with the measure you demand in your requirement? Your data model is described but I don't know the specific field distribution in your tables and the specifics of the foreign keys of the relationships between the tables, can you provide a .pbix file with sample data (not containing sensitive data) and make a sample chart of the line chart you want to expect output so that we can understand your specific needs?

 

Best Regards,

Neeko Tang

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

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.