Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Hello Community - I am using this column formula to place into a shape map (in the legend). In the Values area I am putting the measure (sum of oppotunity value).
The goal is show on the shape map (countries or states) what the TOTAL value of all opportunities are for a particular area.
However, this below is not giving me the TOTAL value, but rather only showing the independent opportunities that fall within these buckets. Take Italy for example. There is an opportunity worth $5.1 million and so that is the only opportunity value represented on the shape map because it falls into the second criteria below. However, Italy has a TOTAL of $8million in opportunities...that is the value that I need the formula to be capturing.
I guess somehow I need to tell the formula to aggregate at the country level?
Solved! Go to Solution.
Hi @Anonymous
Using metrics with SWITCH or IF to have a aggregated levels will return incorrect total, in this case without any data is difficult but you need to pick up the data on a temporary table and then make the selection you need.
Can you please share a mockup data or sample of your PBIX file and expected result. You can use a onedrive, google drive, we transfer or similar link to upload your files.
If the information is sensitive please share it trough private message.
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsThanks @MFelix Not sure if the best way but I created this table and then used that table in the Switch statement per your idea. Works great in the shape map. Using the "country total" in the saturation area, and the cohort column in the legend.
Hi @Anonymous ,
When I refered to a temporary table would be on the measure using a variable, and not a new table because this reduces flexibility if you want to add additional filters on the calculation, but this works also.
You could create the cohort table with the values of the ranges and then create the switch similar to what you have and should work also correctly, But glad you were abble to get a working option.
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsHi @Anonymous
Using metrics with SWITCH or IF to have a aggregated levels will return incorrect total, in this case without any data is difficult but you need to pick up the data on a temporary table and then make the selection you need.
Can you please share a mockup data or sample of your PBIX file and expected result. You can use a onedrive, google drive, we transfer or similar link to upload your files.
If the information is sensitive please share it trough private message.
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em Português