Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more.
Get startedGrow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.
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())
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.
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the June 2024 Power BI update to learn about new features.
User | Count |
---|---|
90 | |
89 | |
79 | |
70 | |
69 |
User | Count |
---|---|
226 | |
129 | |
119 | |
84 | |
77 |