cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
mattapq New Member
New Member

DataViewMapping Conditions Not Working as Expected

I'm having some trouble with setting up a condition containing a minimum requirement.

 

Example:

"conditions": [ { "x": { "max": 1 }, "y": { "min": 2 } } ],

 

The goal is that until the user has mapped exactly one X and two or more Y fields, they will continue to see an error like this:

image.png

 

What actually happens is that you can't map any fields at all.

 

We could set up multiple conditions as "stepping stones" to get to the condition shown above, but that would completely defeat the purpose. The goal here is to display the included error message until the user has mapped all the necessary fields.

 

Is this possible, or will we need to implement our own input validation and error display?

 

powerbi-visuals-api: 2.5.0

powerbi-visuals-tools: 3.0.12

powerbi-visuals-utils-dataviewutils: 2.1.1

 

1 REPLY 1
v-evelk Senior Member
Senior Member

Re: DataViewMapping Conditions Not Working as Expected

Hello,

 

The standard error message window is shown for the whole report.

It is incorrect to adjust it for some limits of certain visual so, it is definitely the best solution to check inputs and show a message inside a visual.

 

Kind Regards,

 

Evgenii Elkin,
Software Engineer
Microsoft Power BI Custom Visuals
pbicvsupport@microsoft.com

Helpful resources

Announcements
October 2019 Community Highlights

October 2019 Community Highlights

October was a busy month in the community. Read the recap article to learn about some of the events and content.

New Badges

Incoming: New and Improved Badges

Exciting news: We've given our badges an overhaul and added brand news ones.

Ask Amir Anything

Exclusive LIVE Community Event No. 2 – Ask Amir Anything

Next in our Triple A series: Ask Amir Netz questions about the latest updates, features and future.

Analytics in Azure virtual event

Analytics in Azure virtual event

Experience a limitless analytics service built to ingest, prep, manage, and serve data for immediate use in Power BI.

Users Online
Currently online: 339 members 3,379 guests
Please welcome our newest community members: