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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

If Formula Error

Hi Expert

 

The last if step is not working  ie. its returning back no result when there clearly is a result if i filter my data set... see highlighted section 

 

Mymeasure =

IF(QUOTEMAN[TRUSTWITHCONSEQ] = 1, "TWC",
        IF(QUOTEMAN[TRUSTWITHCONSEQ] = 0 ,
        IF(QUOTEMAN[FINCNTRL_ACTUALCOST] > 1000000, "VB3",
        IF(QUOTEMAN[FINCNTRL_ACTUALCOST] >= 100000 && QUOTEMAN[FINCNTRL_ACTUALCOST] <= 1000000 , "VB2B",
        IF(QUOTEMAN[FINCNTRL_ACTUALCOST] >= 25000 && QUOTEMAN[FINCNTRL_ACTUALCOST] <= 100000 , "VB2A",
       
        IF(QUOTEMAN[OPTNCHOICE] = 1,
        IF(QUOTEMAN[OPTTOTALCOST] > 1000000, "VB3",
        IF(QUOTEMAN[OPTTOTALCOST] >= 100000 && QUOTEMAN[OPTTOTALCOST] <= 1000000 , "VB2B",
        IF(QUOTEMAN[OPTTOTALCOST] >= 25000 && QUOTEMAN[OPTTOTALCOST] <= 100000 , "VB2A",
       
        IF(QUOTEMAN[OPTNCHOICE] = 0,
        IF(QUOTEMAN[QUOTEMANROC] > 1000000, "VB3",
        IF(QUOTEMAN[QUOTEMANROC] >= 100000 && QUOTEMAN[QUOTEMANROC] <= 1000000 , "VB2B",
        IF(QUOTEMAN[QUOTEMANROC] >= 25000 && QUOTEMAN[QUOTEMANROC] <= 100000 , "VB2A","VB1")))))))))))))
 
 
 
1 ACCEPTED SOLUTION
vanessafvg
Super User
Super User

please provide some data that relates with what you are doing as its very hard to tell you whats wrong with only the thing that is wrong.  You need to provide some sample data in text format so that your code can be evaluated against the data.

 

 





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




View solution in original post

3 REPLIES 3
vanessafvg
Super User
Super User

please provide some data that relates with what you are doing as its very hard to tell you whats wrong with only the thing that is wrong.  You need to provide some sample data in text format so that your code can be evaluated against the data.

 

 





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




Anonymous
Not applicable

Hi Vanessafvg - i have managed to solve it by add a extra step into a new calculated column. Thanks for looking at my question ...

can you kindly have a look at 
(1) Return max value if ID is the same - smallest valu... - Microsoft Power BI Community

 

Anonymous
Not applicable

Hi Vanessafvg - its restricted i cannot provide any data very sorry.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.