Forum Discussion
Convert excel model document (Goal seek) to Power BI
Fadwa ,
What-if parameter may meet your requirement, please refer to doc below:
https://docs.microsoft.com/en-us/power-bi/desktop-what-if
Community Support Team _ Jimmy Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
7 Replies
- amitchandak
Super User
The information you have provided is not making the problem clear to me. Can you please explain with an example. Can you share sample data and sample output.
Appreciate your Kudos.- FadwaFrequent Visitor
I don't know how to explain it because it is a privet data
But the idea is I have a dashboard build in an excel macro model (Dashboard, model, controls... sheets)
So I kinda build the dashboard again to the power bi but with DAX
Like if I want to represent an average of any number that the user choose on power bi dashboard, I've to make:
- A list of minimum numbers in a separate excel sheet: MIN
- A list of maximum numbers in a separate excel sheet: MAX
- And a new measure called AVR for example and it will be: AVR = (SUM('MIN'[min])+SUM('MAX'[max]))/2
To be like this: https://drive.google.com/file/d/1_XKEQk_22yaCDbufX2cgGnPxdbaXR_zA/view?usp=sharing
And go on for the rest of the equations
The problem is one of the cells on Excel (named Vu) give me a number so I built many equations on that number, but then I figure out that is not a value of a stable number, its a result of changing range on goal seek function:
Range("DIFF").GoalSeek Goal:=0, ChangingCell:=Range("VU")
which I mentioned before
- v-yuta-msft
Community Support
Fadwa ,
I'm confused on your description, could you please share some sample data and clarify the logic of your requirement using some expressions?
Regards,
Jimmy Tao