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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
AndySmith
Helper III
Helper III

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.


Visit my LinkedIn page by clicking here.


Schedule a meeting with me to discuss further by clicking here.

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

)

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.