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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
AndySmith
Helper II
Helper II

User Input - Different parameter for each line

Hi

 

Is it possible to generate a list of products that allows the user to enter a different discount % for each line? So in example below the user would add the products and then for each line the user can add a different discount %

 

Is this possible in Power BI?

 

   WholesaleDiscount %DiscountPrice
Product A

100

55

95

Product B100101090
Product C100202080
1 ACCEPTED SOLUTION

Hi @AndySmith,

According to your description, I think your scenario may not suitable for power bi usage.
Perhaps you can do these interactions externally (e.g. powerapps) and use power bi to design the visualization of these results.

Power Apps Community - Power Platform Community (microsoft.com)

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

View solution in original post

5 REPLIES 5
Jihwan_Kim
Super User
Super User

Hi, @AndySmith 

Please check the below picture and the sample pbix file's link down below, whether it is what you are looking for.

All measures are in the sample pbix file.

 

2.png

 

https://www.dropbox.com/s/r8nt5aopco7rfly/andysmith.pbix?dl=0 

 

Hi, My name is Jihwan Kim.

If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Go to My LinkedIn Page


Thank you @Jihwan_Kim - however the purpose of this would be to create a wine list for a resturaunt and therefore could have any number of different products. I think that Power BI is probably not the solution for this!

Hi @AndySmith,

According to your description, I think your scenario may not suitable for power bi usage.
Perhaps you can do these interactions externally (e.g. powerapps) and use power bi to design the visualization of these results.

Power Apps Community - Power Platform Community (microsoft.com)

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
FarhanAhmed
Community Champion
Community Champion

You may create a  powerapps visuals to write back to data source and use same source in your report

 

https://visualbi.com/blogs/microsoft/powerbi/power-apps-visual-power-bi/

https://docs.microsoft.com/en-us/power-bi/visuals/power-bi-visualization-powerapp

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/powerapps-custom-visual

 

Otherwise if you want to fix discounts for all products then you can also use What-If parameters to replace your discount values to parameterized values.

 

https://docs.microsoft.com/en-us/power-bi/transform-model/desktop-what-if

https://blog.enterprisedna.co/scenario-analysis-using-what-if-parameters-in-power-bi/

https://radacad.com/power-bi-what-if-parameters

 

 

 







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

Proud to be a Super User!




amitchandak
Super User
Super User

@AndySmith , You can write a calculated column to do that

New column =

Switch( [Product] ,

"Product A", .05,

"Product B", .03,

// add more

.02

)

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.