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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

Calculation of a result based on several factors

Hello Everyone,

 

I would like to know if this is possible on power Bi?

 

I would like to know the minimum value of column Z in function column A = N * Fixed Data  - with N variable.
Knowing that column B (calculated from column A) not exceed 52.
Knowing that column C (calculated from column A)must be less than column E
Knowing that column D (calculated from column A) If columnF= 'Text', shall not exceed 1

I thought I could create another table of values (as below) of N that respects these conditions, then get the minimum value of column Z

(Here Fixed data = 200 & E = 45%)

 

 N  A  Z  B  C  D 
                   1                          200  1 155,83 €244%1
                   2                          400  642,43 €129%1
                   3                          600  485,12 €813%1
                   4                          800  416,82 €617%1
                   5                       1 000  393,03 €522%1
                   6                       1 200  369,24 €426%1
                   7                       1 400  389,96 €430%1
                   8                       1 600  366,17 €335%1
                   9                       1 800  386,89 €339%1
                10                       2 000  407,61 €343%1

 

Do you think this is feasible? And how? 

 

Thanks in advance, 

Regards,

3 REPLIES 3
Cmcmahan
Resident Rockstar
Resident Rockstar

This sounds like the perfect case for setting up a What-If parameter.

 

If you set up Fixed data and E as What-If Parameters, you should be able to calculate the rest, no problem. Getting the minimum value of Z would likely require you to use ADDCOLUMNS to create the virtual table, and calculating the MIN of that.

Anonymous
Not applicable

This isn't really what I'm looking for. Agree with the ADDCOLUMNS. 

 

I'm looking to build this virtual table using an existing table. My unknown value is N. The fact is to build this virtual table until the conditions are down. And after calculating the min of Z

 

 

This seems like an interesting problem, but I have no idea what you mean by "The fact is to build this virtual table until the conditions are down."

 

It seems like you're trying to solve some sort of debt payment optimization problem.  I see how to calculate A, but can you share with us how you would calculate B, C, and Z starting with the values A, E, and N? 

 

It seems like there's another variable (I'm guessing the principal of 4800, and whatever the interest rate is) that you've used in these calculations.  If you can share all the parts of the calculations, we could give better advice on how to set up the measure.

 

 

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.