Hi Team,
Need your thoughts i am doing some mistake not achieving desired results by using DAX.
please provide your advice.
I have total 10841 Lines or rows which is combination of following condition.
I am using Power Pivot DAX to calculate those Lines in which SKU has blank() and DIS both condition on same location.
I have written some dax.
CountALLLines:=COUNTROWS(SOHP) -->working correct total lines 10841
location check DIS:=CALCULATE([countline],SOHP[Condition Code]="DIS") -->
working correct total lines 51
location check Good:=CALCULATE([countline],FILTER(SOHP,SOHP[Condition Code]=BLANK())) -->working correct total lines 10634
Now i want to check
i want to check (SKU has blank() and DIS both condition on same location.
But following formula not calculating correct
===============================================================================================
following both formula not working
===========================================================================================
location check Good&DIS:=CALCULATE([countline],FILTER(SOHP,SOHP[Condition Code]="DIS" && SOHP[Condition Code]=BLANK()))
or
location check Good&DIS(try2):=CALCULATE([countline],SOHP[Condition Code]="DIS" ,SOHP[Condition Code]=BLANK())
================================================================================================
Expected Result
Need your thoughts i am doing some mistake not achieving desired results by using DAX.
please provide your advice.
I have total 10841 Lines or rows which is combination of following condition.
I am using Power Pivot DAX to calculate those Lines in which SKU has blank() and DIS both condition on same location.
I have written some dax.
CountALLLines:=COUNTROWS(SOHP) -->working correct total lines 10841
location check DIS:=CALCULATE([countline],SOHP[Condition Code]="DIS") -->
working correct total lines 51
location check Good:=CALCULATE([countline],FILTER(SOHP,SOHP[Condition Code]=BLANK())) -->working correct total lines 10634
Now i want to check
i want to check (SKU has blank() and DIS both condition on same location.
But following formula not calculating correct
===============================================================================================
following both formula not working
===========================================================================================
location check Good&DIS:=CALCULATE([countline],FILTER(SOHP,SOHP[Condition Code]="DIS" && SOHP[Condition Code]=BLANK()))
or
location check Good&DIS(try2):=CALCULATE([countline],SOHP[Condition Code]="DIS" ,SOHP[Condition Code]=BLANK())
================================================================================================
SOH Condition check.xlsx | ||||
---|---|---|---|---|
P | Q | |||
3 | Condition Code | Count of SKU | ||
4 | (blank) | 10634 | ||
5 | DAM | 2 | ||
6 | DIS | 51 | ||
7 | INS | 48 | ||
8 | NCD | 94 | ||
9 | QAH | 10 | ||
10 | RET | 2 | ||
Sheet2 |
Expected Result
SOH Condition check.xlsx | ||||||
---|---|---|---|---|---|---|
P | Q | R | S | |||
14 | SKU | Location | (blank) | DIS | ||
15 | 13481550 | KAR085 | 1 | 1 | ||
16 | 16026620 | KAR190 | 1 | 1 | ||
17 | 47774130 | EO03210C | 3 | 1 | ||
Sheet2 |