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
andyL
New Member

Creating a difference measure where data may be in one data set but not the other

Hi,

 

I am trying to create a dashboard that shows the differnces between two sets of data at points in time.

 

I have the same report ran at two points in time Monday morning and Friday evening. Its helpdesk data so each call has a unique ID and a queue that it is allocated to.

 

At the moment I have the two reports linked on a many to many relationship on the queue name.

 

I am trying to create a measure to identify the differnces in the counts between the two datasets. I have used the following 

 

Difference = DISTINCTCOUNT('OpenCalls-SupportWorksFriday 5pm'[h_formattedcallref])-DISTINCTCOUNT('OpenCalls-SupportWorksMonday 8am - Copy'[h_formattedcallref])

 

On the whole this works well but I have found some a discrpeancy where if a queue has data on one of the reports but then does not have any data on the other I get nothing displayed. Ideally I would want to show 0 when there is no data and then the count figure when there is a record.  Obviously if there is no record in either data set it does not need to be displayed. 

 

Can anyone offer any advice on how his might be done?

1 REPLY 1
Kishore_KVN
Super User
Super User

Hey @andyL 

1. Use DISTINCTCOUNTNOBLANK or apply IF condition for excluding blanks before the formula that you have written which helps you to ignore if records are not there in both the datasets. 

2. At the end of your measure, write "+0" to get results as '0' where ever its blank.

 

If this post helps, then please consider accepting it as the solution to help other members find it more quickly. Thank You!!

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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