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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
ThomasStift
Regular Visitor

What if parameter should change sales price

Hello, I'm trying to use a new what if parameter for the first time. Through the modeling, I create a numeric parameter "Factor".

It looks like this: Factor = GENERATESERIES(2, 5, 0.01).

Power BI automatically creates a slicer that also displays all values correctly.

I would now like to calculate a sales price with the field "Factor value = SELECTEDVALUE('Factor'[Factor])".

Productprice comes from the item master.

SalesPrice = 'Product'[price] * factor[factor value]

However, "SalesPrice" is only calculated in the article table if a standard is stored in the parameter. 

For example "2". Then product price "5" becomes sales price "10".

However, the selected parameter in the slicer does not change the sales price.

Does the table still have to be connected to the product table? If yes, how?

Thanks in advance for a solution.

Thomas

2 ACCEPTED SOLUTIONS
Idrissshatila
Super User
Super User

Hello @ThomasStift ,

 

the sales price is calculated through the measure you're using, so the price will change where the measure is displayed but it won't change the main data table that is loaded in your data view.

 

If I answered your question, please mark my post as solution so it would appeare to others, Appreciate your Kudos👍

Follow me on Linkedin



Did I answer your question? Mark my post as a solution! Appreciate your Kudos
Follow me on LinkedIn linkedIn
Vote for my Community Mobile App Idea

Proud to be a Super User!




View solution in original post

ThomasStift
Regular Visitor

It's solved. It was a problem with the disconnected tabel. I create the measure in the parameter table and then it runs.

🙂

View solution in original post

3 REPLIES 3
ThomasStift
Regular Visitor

It's solved. It was a problem with the disconnected tabel. I create the measure in the parameter table and then it runs.

🙂

Idrissshatila
Super User
Super User

Hello @ThomasStift ,

 

the sales price is calculated through the measure you're using, so the price will change where the measure is displayed but it won't change the main data table that is loaded in your data view.

 

If I answered your question, please mark my post as solution so it would appeare to others, Appreciate your Kudos👍

Follow me on Linkedin



Did I answer your question? Mark my post as a solution! Appreciate your Kudos
Follow me on LinkedIn linkedIn
Vote for my Community Mobile App Idea

Proud to be a Super User!




Hello Idsrisshatila,
thx for your reply. With the slicer I don't want to put a filter on the table.
My table contains a list of articles and a base price.
I want the base price to show different prices for customer A, B, C with a variable factor depending on how the slicer is set.
I was thinking that "what if" can be used so that the price column adjusts according to the slicer.

BR, Thomas

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.