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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register 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
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.