Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Dear Friends
i have a table(column: PoNo. & Doc No.) of thousands of rows, PO column have repeated value with corresponding DocNo as shown.
i need to create one more column "Result-Missing" that have results like:
if all rows of individual each PO have DocNo then result is "No Missing"
elseif all rows of each PO have all blank DocNo then result is "Fully Missing"
else all rows of each PO have some blank then result is "Partial Missing"
table like:
Result column will be like:
Thanks
Jyaul
Solved! Go to Solution.
@Anonymous
pls try this
Column =
VAR check1=maxx(FILTER('Table','Table'[PO no.]=EARLIER('Table'[PO no.])&&'Table'[Doc no.]=""),'Table'[PO no.])
VAR check2=maxx(FILTER('Table','Table'[PO no.]=EARLIER('Table'[PO no.])&&'Table'[Doc no.]<>""),'Table'[PO no.])
return if(check1<>""&&check2="","Fully Missing",if(check1=""&&check2<>"","No missing","Partial missing"))
Proud to be a Super User!
Hi @Anonymous ,
You can create a column with below code:-
Column =
VAR po_count =
CALCULATE (
COUNT ( 'Table (2)'[PO No] ),
FILTER (
ALL ( 'Table (2)' ),
'Table (2)'[PO No] = EARLIER ( 'Table (2)'[PO No] )
)
)
VAR doc_count =
CALCULATE (
COUNT ( 'Table (2)'[Doc no] ),
FILTER (
ALL ( 'Table (2)' ),
'Table (2)'[PO No] = EARLIER ( 'Table (2)'[PO No] )
)
)
RETURN
SWITCH (
TRUE (),
doc_count = 0, "Fully Missing",
po_count = doc_count, "No Missing",
doc_count < po_count, "Partial Missing"
)
Output:-
Thanks,
Samarth
Best Regards,
Samarth
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin
@Anonymous
pls try this
Column =
VAR check1=maxx(FILTER('Table','Table'[PO no.]=EARLIER('Table'[PO no.])&&'Table'[Doc no.]=""),'Table'[PO no.])
VAR check2=maxx(FILTER('Table','Table'[PO no.]=EARLIER('Table'[PO no.])&&'Table'[Doc no.]<>""),'Table'[PO no.])
return if(check1<>""&&check2="","Fully Missing",if(check1=""&&check2<>"","No missing","Partial missing"))
Proud to be a Super User!
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
118 | |
77 | |
47 | |
45 | |
32 |
User | Count |
---|---|
172 | |
90 | |
66 | |
46 | |
45 |