The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hello everyone,
I have a map as a visualization.
Under location I used the customer's location. I have entered the customers under the legend (customer name).
This is linked to the representative in the report.
In other words, I have a preselection of 3 representatives. If I select John, only John and his customers will be shown on the map. How can I use a function to ensure that each of John's customers automatically receives the color red when assigned to him?
I have previously set the color of the bubbles manually, but I would like to change this to automatically in the future.
I would be grateful for your answers.
Solved! Go to Solution.
Hi @azaterol
You can create a measure. Presuming you have the Sales Rep in the Customer Dimension Table, create this measure
SalesRepColour =
SWITCH(SELECTEDVALUE('DIM Customer'[SalesRep]),
"John", "#FF0000",
"Tom", "#7ACA00")
Go to the Formatting Pane of the Visual > Bubbles > Colors > fx Format Sytle = Field Value Then choose the measure you created for the What field should we base this on
Hope this helps
Joe
If you found my answer helpful and it solved your issue, please accept as solution
Proud to be a Super User! | |
Date tables help! Learn more
Hi @azaterol
You can create a measure. Presuming you have the Sales Rep in the Customer Dimension Table, create this measure
SalesRepColour =
SWITCH(SELECTEDVALUE('DIM Customer'[SalesRep]),
"John", "#FF0000",
"Tom", "#7ACA00")
Go to the Formatting Pane of the Visual > Bubbles > Colors > fx Format Sytle = Field Value Then choose the measure you created for the What field should we base this on
Hope this helps
Joe
If you found my answer helpful and it solved your issue, please accept as solution
Proud to be a Super User! | |
Date tables help! Learn more
Thank you.
User | Count |
---|---|
78 | |
74 | |
42 | |
32 | |
28 |
User | Count |
---|---|
104 | |
93 | |
52 | |
50 | |
46 |