The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Hi,
I have an issue that I am trying to sort out... miserably....
I have a column for the turnover for each day, next to it I have a column for the number of transactions per day. This means I can calculate the average basket value (turnover/number of transactions = Average Basket Value).
I want to now add the results of the What If slider to the average basket value and then recalculate the turnover based on the new basket value. So as the user slides the slider and keeps adding the average basket value (or the new increased average basket value), increases, then the new turnover for each day is calculated by (New Averge Basket Value * number of transactions = New Turnover).
I have my What if Slider working, I have the average basket value working, but I cannot get each row to update with a new average basket value based on the value generated by the slider. That is, each row's new basket value should be Average Basket Value + Value of slider.
Any assistance would be appreciated.
Solved! Go to Solution.
hi, @duggy
After my test, you can try to add several measures to achieve it.
Assume that this is the basic data.
Step1:
Add the Average Basket Value measure
Average Basket Value = CALCULATE(SUM(Table1[turnover ]))/CALCULATE(SUM(Table1[number of transactions ]))
Step2:
Add a what if New Parameter
Step3:
Add new Average Basket Value measure
new Average Basket Value = [Average Basket Value]+Parameter[Parameter Value]
Step4:
Add new turnover measure
new turnover = [new Average Basket Value]*CALCULATE(SUM(Table1[number of transactions ]))
Result:
and after adding parameter
here is pbix, please try it.
Best Regards,
Lin
hi, @duggy
After my test, you can try to add several measures to achieve it.
Assume that this is the basic data.
Step1:
Add the Average Basket Value measure
Average Basket Value = CALCULATE(SUM(Table1[turnover ]))/CALCULATE(SUM(Table1[number of transactions ]))
Step2:
Add a what if New Parameter
Step3:
Add new Average Basket Value measure
new Average Basket Value = [Average Basket Value]+Parameter[Parameter Value]
Step4:
Add new turnover measure
new turnover = [new Average Basket Value]*CALCULATE(SUM(Table1[number of transactions ]))
Result:
and after adding parameter
here is pbix, please try it.
Best Regards,
Lin
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.
User | Count |
---|---|
112 | |
81 | |
78 | |
43 | |
37 |
User | Count |
---|---|
157 | |
112 | |
64 | |
60 | |
54 |