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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

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
Community Champion
Community Champion

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
Community Champion
Community Champion

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
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.