Don't miss your chance to take exam DP-600 or DP-700 on us!
Request nowLearn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! 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!
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 49 | |
| 40 | |
| 32 | |
| 14 | |
| 13 |
| User | Count |
|---|---|
| 87 | |
| 72 | |
| 37 | |
| 28 | |
| 26 |