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

Join the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now

Reply
KuntalSingh
Helper V
Helper V

If Condition else condition

I need to applied mention below condition. Can someone please help

1. For Easy cases- [POValue_Category] < 200000 and [Outline Agreement_Status] = "Agreement Not Available" and [Division] = "Marketing

2. For Easy Cases- if [POValue_Category] < 100000 and [Outline Agreement_Status] = "Agreement Not Available" and [Division] is other than Marketing

3. For Medium Cases- [POValue_Category] < 200000 and [Outline Agreement_Status] = "Agreement Available" and [Division] = "Marketing" else Complex cases

 PO Value Purch OrgPOValue_CategoryOutlineAgreement_StatusInvoiceValue CatDivisonComments.

 

Raw data

 PO Value Purch OrgPOValue_CategoryOutlineAgreement_StatusInvoiceValue CatDivison

3430752SERV<50LacAgreement_Not_Available<10LacRefinery
204344.5SERV<5LacAgreement_Not_Available<1LacRefinery
500558.4SERV<10LacAgreement_Not_Available<1LacRefinery
3430752SERV<50LacAgreement_Not_Available<1LacRefinery
250279.2SERV<5LacAgreement_Not_Available<1LacRefinery
250279.2SERV<5LacAgreement_Not_Available<1LacRefinery
500558.4SERV<10LacAgreement_Not_Available<1LacRefinery
883376SERV<10LacAgreement_Not_Available<1LacRefinery
250279.2SERV<5LacAgreement_Not_Available<1LacRefinery
395856SERV<5LacAgreement_Not_Available<1LacRefinery
1326000SERV<50LacAgreement_Not_Available<1LacRefinery
581065.5SERV<10LacAgreement_Available<10LacMarketing
581065.5SERV<10LacAgreement_Available<10LacMarketing
581065.5SERV<10LacAgreement_Available<10LacMarketing
352022.6SERV<5LacAgreement_Not_Available<1LacMarketing
562930.7SERV<10LacAgreement_Not_Available<1LacMarketing
562930.7SERV<10LacAgreement_Not_Available<1LacMarketing
562930.7SERV<10LacAgreement_Not_Available<1LacMarketing
562930.7SERV<10LacAgreement_Not_Available<1LacMarketing
562930.7SERV<10LacAgreement_Not_Available<1LacMarketing
562930.7SERV<10LacAgreement_Not_Available<1LacMarketing
562930.7SERV<10LacAgreement_Not_Available<1LacMarketing
562930.7SERV<10LacAgreement_Not_Available<1LacMarketing
562930.7SERV<10LacAgreement_Not_Available<1LacMarketing
562930.7SERV<10LacAgreement_Not_Available<1LacMarketing
562930.7SERV<10LacAgreement_Not_Available<1LacMarketing
562930.7SERV<10LacAgreement_Not_Available<1LacMarketing
562930.7SERV<10LacAgreement_Not_Available<1LacMarketing
562930.7SERV<10LacAgreement_Not_Available<1LacMarketing
562930.7SERV<10LacAgreement_Not_Available<1LacMarketing
562930.7SERV<10LacAgreement_Not_Available<1LacMarketing
562930.7SERV<10LacAgreement_Not_Available<1LacMarketing
562930.7SERV<10LacAgreement_Not_Available<1LacMarketing
562930.7SERV<10LacAgreement_Not_Available<1LacMarketing
562930.7SERV<10LacAgreement_Not_Available<1LacMarketing
562930.7SERV<10LacAgreement_Not_Available<1LacMarketing
562930.7SERV<10LacAgreement_Not_Available<1LacMarketing
562930.7SERV<10LacAgreement_Not_Available<1LacMarketing
562930.7SERV<10LacAgreement_Not_Available<1LacMarketing
562930.7SERV<10LacAgreement_Not_Available<1LacMarketing
562930.7SERV<10LacAgreement_Not_Available<1LacMarketing
562930.7SERV<10LacAgreement_Not_Available<1LacMarketing
562930.7SERV<10LacAgreement_Not_Available<1LacMarketing
562930.7SERV<10LacAgreement_Not_Available<1LacMarketing
562930.7SERV<10LacAgreement_Not_Available<1LacMarketing
4973617SERV<50LacAgreement_Available<50LacMarketing
1415519SERV<50LacAgreement_Available<50LacMarketing
18776.8SERV<1LacAgreement_Not_Available<1LacMarketing
19470SERV<1LacAgreement_Not_Available<1LacMarketing
2.5E+08NHVT1Cr & aboveAgreement_Available<50LacMarketing
2.5E+08NHVT1Cr & aboveAgreement_Available<50LacMarketing
2.5E+08NHVT1Cr & aboveAgreement_Available<50LacMarketing
50307711NHVT1Cr & aboveAgreement_Available<50LacMarketing
50307711NHVT1Cr & aboveAgreement_Available<50LacMarketing
2.92E+08NHVT1Cr & aboveAgreement_Available<50LacMarketing
2.92E+08NHVT1Cr & aboveAgreement_Available<50LacMarketing
23010SERV<1LacAgreement_Not_Available<1LacMarketing
19682.4NHVT<1LacAgreement_Not_Available<1LacMarketing
22007958SERV1Cr & aboveAgreement_Not_Available<10LacRefinery
1 ACCEPTED SOLUTION
dufoq3
Super User
Super User

Hi @KuntalSingh, you've mentioned Easy cases twice, but without any expected result. 

 

Check this logic:

 

dufoq3_3-1715599333463.png

 


Note: Check this link to learn how to use my query.
Check this link if you don't know how to provide sample data.

View solution in original post

1 REPLY 1
dufoq3
Super User
Super User

Hi @KuntalSingh, you've mentioned Easy cases twice, but without any expected result. 

 

Check this logic:

 

dufoq3_3-1715599333463.png

 


Note: Check this link to learn how to use my query.
Check this link if you don't know how to provide sample data.

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

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.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.