cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
aucklanduser Frequent Visitor
Frequent Visitor

User input in desktop

Im trying to design a better process for our cost accountant, he is currently spending hours each month waiting for bulky spreadsheets to calculate, our 20 million odd line dataset loads almost instantly in powerbi. What he needs however is the ability to exclude specific job assemblies from a calculation. As this is "art not science", it cannot be calculated, reasons need to be taken into account before a decision is made whether to include or exclude outliers. Preferably dont want to filter the operations individually as there will be many thousands of operations a month to look through. Ideal output would be an "include" column that has jobs over 200% of standard or under 50% of standard, which can be set by the user as 1 or 0, then filter on this. 

 

Sorry if this is very vague, more about the concept of having a user editable element, just trying to cut down some excel processing time.

10 REPLIES 10
Super User
Super User

Re: User input in desktop

@aucklanduser if you can provide some sample data and business rule around what to exclude/include , it wil help to provide the solution. Even What-If parameter can be use in this scenario if % are not fixed for include/exclude.

 

 




Did I answer your question? Mark my post as a solution!

Proud to be a Datanaut! Connect with me on Linkedin






aucklanduser Frequent Visitor
Frequent Visitor

Re: User input in desktop

Hey Parry,

 

Havent developed the dataset yet as I will just leave it if its not possible but it will look like;

 

Date   Job#   Assy#   ActualHours   StandardHours   VarToStd   Var%   Include/Exclude?

 

For each jobs assembly, we are assessing the variance to our current standard (e.g the build operation for widget A normally takes 1 hour but for job 1 it took 3 hours). He currently pulls anything less than 50% of the current standard or over 200% of the current standard (100% positive / minus) and then looks at the reasons for the variances and will either include or exclude these in the calculation of the new standard. The user needs the ability to flag particular rows as either include or exclude in the new average hours (standard) calculation for each assembly.

 

How would a what if parameter be used? Many thanks for your help

Moderator v-yuezhe-msft
Moderator

Re: User input in desktop

@aucklanduser,

Please share sample data of your table and post expected result based on sample data following the guide in the blog below.

https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490

Regards,
Lydia

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
aucklanduser Frequent Visitor
Frequent Visitor

Re: User input in desktop

Thansk Lydia, the data will be laid out like the table below, however the Include/Exclude table needs to be manually adjusted. The check is calculated on whether or not Var% is less than 50% or greater than 200%. We sometimes want to include and sometimes exclude these variances as they may just be system errors which we do not want to include. Based on the input from the include or exclude, the NewStd column will pull either the ActualHours (if yes) or StandardHours (if no). We will then average the NewStd column by job to get our new standard hours.

 

Main question being, is it possible in powerbi to have a parameter or other form of user input that can set a variable for a row?

 

Capture.PNG

 

Thanks

Moderator v-yuezhe-msft
Moderator

Re: User input in desktop

@aucklanduser,


Main question being, is it possible in powerbi to have a parameter or other form of user input that can set a variable for a row?

 

Capture.PNG

 

 



If you mean create Var% column dynamically based on user input, you can create what if paramater in Power BI Desktop, then create a measure named Var%.

Var% = Parameter[Parameter Value]*MAX(Table1[Var])


Then you can crate the following measures.

Include/Exclude = IF([Var%]>2, "No", IF([Var%]<0.5, "Yes",BLANK()))
NewStd = IF([Include/Exclude]="Yes" ||ISBLANK([Include/Exclude]),MAX(Table1[ActualHours]),MAX(Table1[StandardHours]))

Capture.PNG

Regards,
Lydia

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
aucklanduser Frequent Visitor
Frequent Visitor

Re: User input in desktop

Hi Lydia,

 

The user needs to decide whether or not to include or exclude, it is not based on a formula,

 

Thanks

Moderator v-yuezhe-msft
Moderator

Re: User input in desktop

@aucklanduser,

Please elaborate that what variable the users would input, and what result would you like to get based the input based on above sample data.

Regards,
Lydia

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
aucklanduser Frequent Visitor
Frequent Visitor

Re: User input in desktop

Hi Lydia,

 

The user will input either include or exclude (1 or 0) to include or exclude the row from the calculation based on the cost accountants judgement

Moderator v-yuezhe-msft
Moderator

Re: User input in desktop

@aucklanduser,

If the Include/Exclude column is a existing field or a calculated column in your table, you can create a slicer using this field for user to choose.

Otherwise, you can create what if parameter(1 or 0) as my previous reply. If you still have questions, please post expected result based on  the above sample table, and elaborate more about your desired result following the guide in the blog below.

https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490

Regards,
Lydia

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.