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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
KuntalSingh
Helper V
Helper V

Need help on filtering data based on conditions

Hi Team

I want to filter mention below sample data based on conditions

Conditions are 

In column Basic_cost_total only Blank and 0 values

Coulumn Freight_total, Insurance_total and Insp_Total either one of them have some value 

 

RefKey3 Purchasing Document MIGO MIRO basic_cost_Total Freight_MIGO Freight_MIRO Freight_Total Insurance_MIGO Insurance_MIRO Insurance_Total Insp_MIGO Insp_Total Grand Total
5947884463 28594303 -2300 -2300 -2300
5947841537 28432842 -3715199 -3715199 -3715199
5947839347 28695293 -541445 -541445 -541445
5947830088 27195054 -174250 -174250 -174250
5947824303 29128875 -81400 -81400 -480.26 -480.26 -81880.26
5947815877 27932231 -4050000 -4050000 -4050000
5947809323 28383786 -87159 -87159 -87159
5947809109 27529345 -1950610 -1950610 -68271.350000000006 -68271.35 -2018881.35
5947803469 28439436 -110041 -110041 -110041
5947801987 29079641 -5058894.17 -5058894.17 -271120 -271120 -5330014.17
5947800580 28236143 -477540 -477540 -477540
5947799501 29128875 -42080 -42080 -248.27 -248.27 -42328.27
5947799297 29079997 -24765.25 -24765.25 -24765.25
5947790735 28705351 -2732160 -2732160 -2732160
5947790731 27466594 -4170472.32 -4170472.32 -4170472.32
5947782118 28213632 -2744473 -2744473 -2744473
5947781695 27786520 -125930 -125930 -125930
5947773294 29073137 -1524600 -1524600 -1524600
5947773227 29093097 -289500 -289500 -289500
5947773225 28706659 -547670 -547670 -547670
5947759806 27885349 -561.79999999999995 -561.8 -561.8
5947757230 28106264 -65556.47 -65556.47 -65556.47
5947757178 28106264 -106339.68 -106339.68 -106339.68
5947755416 28562749 -37550 -37550 -1877.5 -1877.5 -39427.5
5947755267 27628126 -528000 -528000 -528000
5947754635 28473989 -48072.6 -48072.6 -48072.6
5947751259 28801127 -20081.46 -20081.46 -20081.46
5947751251 28693443 -2200000 -2200000 -2200000
5947747535 27587420 0 0 0
5947747469 27587420 -2676.05 -2676.05 -2676.05
5947700615 27587420 0 0 0
5947737933 28438049 -934245.2 -934245.2 -934245.2
5947714779 28349653 -0.29 -0.29 -0.29
5947714728 28349653 -0.3 -0.3 -0.3
5947714631 28094250 -1890000 -1890000 -11151 -11151 -1901151
5947710338 28984618 -287300 -287300 -1695.07 -1695.07 -288995.07
5947709327 27648129 -139798 -139798 -139798
5947709050 29090401 -465568.12 -465568.12 -465568.12
5947701379 29073956 -125000.4 -125000.4 -125000.4
5947694899 29107570 -812480.5 -812480.5 -812480.5
5947690683 29036142 -2332360 -2332360 -2332360
5947690410 28628938 -883179.54 -883179.54 -883179.54
5947689975 28349653 -0.3 -0.3 -0.3
5947680226 28213355 -1269740 -1269740 -1269740
5947680153 27869815 -2506500 -2506500 -2506500
5947674915 28643383 -84840 -84840 -500.56 -500.56 -85340.56
5947674911 28643383 -128000 -128000 -755.2 -755.2 -128755.2
5947671688 28438006 -920163.21 -920163.21 -920163.21
5947663021 28984618 -439400 -439400 -2592.46 -2592.46 -441992.46
5947662138 28349653 -0.29 -0.29 -0.29
5947658210 27124573 -2282460 -2282460 -34164.129999999997 -34164.13 -2316624.13
5947656393 28109299 -669399.06 -669399.06 -669399.06
5947656174 28438049 -1225611.32 -1225611.32 -1225611.32
5947656087 28438049 -1280089.57 -1280089.57 -1280089.57
5947652467 28643383 -42400 -42400 -250.16 -250.16 -42650.16
5947652303 28346722 -0.25 -0.25 -0.25
5947645246 27306658 -63679.14 -63679.14 -4075.4700000000003 -4075.47 -67754.61
5947645056 26883162 -1185198.45 -1185198.45 -110460.5 -110460.5 -1295658.95
5947644832 26883162 -1772008.2 -1772008.2 -165151.16 -165151.16 -1937159.36
5947644435 26883162 -493870.51 -493870.51 -46028.73 -46028.73 -539899.24
5947644406 27124483 -21224.62 -21224.62 -21224.62
5947640659 28203736 -569491.53 -569491.53 -569491.53
5947640412 28354786 -908343.61 -908343.61 -35275.479999999996 -35275.48 -5567.35 -5567.35 -949186.44
5947638886 28905864 -365720.34 -365720.34 -365720.34
5947634825 28438049 -750821.19 -750821.19 -750821.19
5947634729 28438049 -888240.03 -888240.03 -888240.03
5947634725 28346722 -0.25 -0.25 -0.25
5947634720 28438034 -1006146.94 -1006146.94 -1006146.94
5947619546 29079679 -69985.66 -69985.66 -69985.66
5947615561 28629054 -242127.6 -242127.6 -242127.6
5947615356 28094250 -2417940 -2417940 -14265.84 -14265.84 -2432205.84
5947614131 28929172 -1101282.53 -1101282.53 -1101282.53
5947608903 28349653 -0.29 -0.29 -0.29
5947608900 28438006 -945224.39 -945224.39 -945224.39
5947607992 28600734 -168000 -168000 -6400 -6400 -976.64 -976.64 -175376.64
5947603029 28643383 -510000 -510000 -3009 -3009 -513009
5947599457 28890735 -1622296.34 -1622296.34 -16062.34 -16062.34 -9174.81 -9174.81 -1647533.49
5947592205 28394128 -59040 -59040 -59040
5947589193 27712371 -1389391.53 -1389391.53 -1389391.53
5947589011 28349653 -0.29 -0.29 -0.29
5947583226 28706547 -279000 -279000 -279000
5947580155 28349653 -0.29 -0.29 -0.29
5947576876 28438006 -942956.95 -942956.95 -942956.95
5947576726 29072831 -167680 -167680 -167680
5947572922 28675810 -2015429.32 -2015429.32 -2015429.32
5947572794 27587420 -695967.27 -695967.27 -4106.21 -4106.21 -700073.48
5947567509 28965681 -1023264 -1023264 -30096 -30096 -6214.82 -6214.82 -1059574.82
5947567283 29066939 -167796.6 -167796.6 -167796.6
5947567064 28885820 -329669.4 -329669.4 -329669.4
5947564692 28643383 -375800 -375800 -2217.22 -2217.22 -378017.22
5947564592 28875540 -35216.8 -35216.8 -35216.8
5947564514 28778233 -1313147 -1313147 -38247 -38247 -1351394
5947564400 28675810 -2037413.37 -2037413.37 -2037413.37
5947563926 28354759 -0.27 -0.27 -0.27
5947563189 29023168 -35593.2 -35593.2 -35593.2
5947561419 28883578 -1013935 -1013935 -1013935
5947560906 28200738 -120.83 -120.83 -120.83
5947555757 28236143 -108460 -108460 -108460
5947555750 28346722 -0.21 -0.21 -0.21

 

1 ACCEPTED SOLUTION
slorin
Super User
Super User

Hi

 

= Table.SelectRows(Source, each 
([Basic_cost_total] = 0 or [Basic_cost_total] = null)
and
([Freight_total]<>null or [Insurance_total]<>null or [Insp_Total]<>null)
)

 

Stéphane 

View solution in original post

2 REPLIES 2
slorin
Super User
Super User

Hi

 

= Table.SelectRows(Source, each 
([Basic_cost_total] = 0 or [Basic_cost_total] = null)
and
([Freight_total]<>null or [Insurance_total]<>null or [Insp_Total]<>null)
)

 

Stéphane 

Thanks for your reply

There is a bit change 

Instead of Freight_Total, Insurance_Total and Insp_Total

Need : 

In column Basic_cost_total only Blank and 0 values

Coulumn Freight_MIGO ,Freight MIRO, Insurance_MIGO ,Insurance_MIRO  and Insp_MIGO  Insp_MIRO either one of them have some value except 0 and null

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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