Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
JSWILCOX1980
Regular Visitor

Count of blanks based on distinct count of another column

i have a source table where i have data that when entered created 3 separate columns, Lets call the form Entry "LABEL" which when the user adds more than one label in the field, it creates mulitple columns.  So you end up with mutiple columns -  Label 1 "apple", Label 2 "orange", Label 3 "pear".  So i had to Unpivot columns in order to quantify the labels appropriately.  This has caused some other issues now, it basically has tripled the rows and data in the table so counts must be DISTINCT most of the time if not all.

 

Sample Data:

ISSUE IDREQUESTCREATEDRESOLVEDLabels
111222REQ-1011/1/23 

Apple

111222REQ-1011/1/23 Orange
111222REQ-1011/1/23 Pear
333444REQ-1023/17/233/26/23Orange
333444REQ-1023/17/233/26/23Grape
333444REQ-1023/17/233/26/23Strawberry
555666REQ-1035/4/23 Orange
555666REQ-1035/4/23 Pear
666777REQ-1046/7/236/15/23

Apple

666777REQ-1046/7/236/15/23Orange
666777REQ-1046/7/236/15/23Strawberry
888999REQ-1058/4/23 Plum
888999REQ-1058/4/23 Pear

 

Here is where i am having trouble :

 

What i would like to to do is have a calculation show me How many Total Created Cases , Total Resolved Cases and Total of Unresolved (based on blanks in RESOLVED column)

 

TableCountBlanks = COUNTBLANK('Table'[Resolved])
JSWILCOX1980_0-1701716582381.png

 

 

Any assistance would be greatly appreciated!

 

Jeremy Wilcox

 

 

1 REPLY 1
Fowmy
Super User
Super User

@JSWILCOX1980 

Here are the three measures that you need:

Created Tickets = DISTINCTCOUNT( Table4[ISSUE ID] )

-------------------------------------------------------

Resolved Tikets = 
CALCULATE(
    [Created Tickets],
    TableName[RESOLVED] <> BLANK()
) 

-------------------------------------------------------

Unresolved Tickets = [Created Tickets] - [Resolved Tikets]



Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors