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.
Hi all,
I'm upgrading a visual to be able to draw a polygon with a different style based on conditions. F.e: if field X = "abc" color should be red and size 5, otherwise color blue and size 2. The user should be able to set these in the panel.
I'm currently able to implement it by using:
instanceKind: powerbi.VisualEnumerationInstanceKinds.ConstantOrRule,
selector: dataViewWildcard.createDataViewWildcardSelector(dataViewWildcard.DataViewWildcardMatchingOption.InstancesOnly)
However I cannot find the style values per row, only one general style that changes based on what's filtered. So if I filter the data (using a table visual) to an entry where X = "abc" I do get red (not size as I'm not sure if it can do numbers) but when it's not filtered I only get the default blue.
Am I in the right track using conditional formatting or should be doing something else instead?
Thanks in advance