Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live 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!
The Power BI Data Visualization World Championships is back! It's time to submit your entry.
| User | Count |
|---|---|
| 130 | |
| 128 | |
| 59 | |
| 45 | |
| 45 |