Skip to main content
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
matthewgoldring
New Contributor II

Number of DataRoles added

Hello, hoping someone could help.

 

Have created a custom vis and have set a dataRole that will take a minimum of 1 and maximum of 2 inputs.

 

I am wanting to have my R script change depending on whether I have 1 or 2 inputs. How can I access the dataRoles to check how many are there?

Or is there something I can add to an if statement in R to check how many inputs there are?

 

Thanks in advance!

 

Matt

2 REPLIES 2
v-viig
Honored Contributor II

Please send this question to Power BI R Custom Visuals Support <pbircvsupport@microsoft.com>

 

Ignat Vilesov,

Software Engineer

 

Microsoft Power BI Custom Visuals

pbicvsupport@microsoft.com

matthewgoldring
New Contributor II

Hello, hoping someone could help.

 

Have created a custom vis and have set a dataRole that will take a minimum of 1 and maximum of 2 inputs.

 

I am wanting to have my R script change depending on whether I have 1 or 2 inputs. How can I access the dataRoles to check how many are there?

Or is there something I can add to an if statement in R to check how many inputs there are?

 

Thanks in advance!

 

Matt

Helpful resources

Announcements
Users online (25)