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

Don'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.

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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