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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.