DAX formula help...

Matty

Well-known Member
Joined
Feb 17, 2007
Messages
3,717
Hi Team,

Looking for suggestions as to how others would tackle the following issue...

Data as follows:

Book1
ABCDE
1ShopMonthQuantityValueMissing
2A11024No
3A250Yes
4A31534No
5B100No
6B22048No
7B3350Yes
Sheet1
Cell Formulas
RangeFormula
E2:E7E2=IF(AND(C2<>0,D2=0),"Yes","No")

Column E is there to illustrate what I want the measure to do. Note that I do NOT want to use a calculated column.

With Month removed, the matrix would return the following:

Book1
GHIJ
1ShopQuantityValueMissing
2A3058Yes
3B5548Yes
Sheet1

The idea here being that if Quantity is <> 0 and Value = 0 for any records (rows) for a given Shop in the underlying data, then 'Yes' should show at the aggregated level.

I'll continue having a play myself to see if I can get something to work, but any help would be welcome.

Cheers,

Matty
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
This seems to do the job:

Code:
Missing Check = 
IF (
    CALCULATE (
        COUNTROWS ( Table1 ),
        FILTER ( Table1, Table1[Quantity] <> 0 && Table1[Value] = 0 )
    ) > 0,
    "Yes",
    "No"
)

Cheers,

Matty
 
Upvote 0

Forum statistics

Threads
1,223,803
Messages
6,174,687
Members
452,577
Latest member
Filipzgela

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top