The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
Hello everyone,
I need help with one DAX. Actually, I need something that is in excel called 'What-If-Analysis/Goal Seek' .
I would try to explain problem:
I have two known components - example stock (I will name it A) and sales (I will name it B), at the moment.
And I have ratio between them as end of period goal (I will name it GOAL).
My unknown component, the one I need help with, is forecast sale by the end of the period (I will name it X).
A / B = CURRENT RATIO
(A-X) / (B+X) = GOAL
X = ?
If you think you can help me, you can ilustration in excel:
Thanks in advance,
Alex
Solved! Go to Solution.
Hi @astojanac ,
1.You can make current ratio as a measure:
measure=Devide(MAX(A),MAX(B))
2.Then convert your X expression as below:
x=Devide((A-Goal*B),(Goal+1))
Hi @astojanac ,
1.You can make current ratio as a measure:
measure=Devide(MAX(A),MAX(B))
2.Then convert your X expression as below:
x=Devide((A-Goal*B),(Goal+1))
Hi @v-kelly-msft T,
Thank you for your answer and thank you so much for your help. This is the formula I've been looking for.
Kind regard,
Alex
In Powerbi, You have what-if parameter, see if it can help
Hello @amitchandak ,
Thank you for your answer.
I know for What-if parameter, but I can't find the way to use it in my case when I have unknown value in two places at the same time.
User | Count |
---|---|
69 | |
65 | |
63 | |
55 | |
28 |
User | Count |
---|---|
112 | |
81 | |
65 | |
48 | |
42 |