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
Karlie69
Regular Visitor

Calculation the quantity for non-existent data in the table

Hi 🙂

The problem I have is as follows:
I have a table that stores the audit results. The audit is carried out once or twice a month. Sometimes the audit should be carried out twice, but it was not even once (therefore no new records appeared in the table).

I would like to create a table, anything that would show me that in a given month, an audit was not carried out even once. But how to do it, if no new records have been registered in the table?

Below is my solution that works only when at least one audit has been carried out. I just added a conditional column to the register, which returned to me the number 2 (so two audits should be performed) - this is "Count of audits to be performed"
The "Count of performed audits" column is based on the date column (I set it not to show me the date, only the number of dates)
Left to audit - I just subtracted the second column from the first.

 

Area

Count of performed audits

Count of audits to be performed

Left to audit

Administration

1

2

1


I hope that my problem is comprehensible. Thank you in advance!

1 ACCEPTED SOLUTION
v-kelly-msft
Community Support
Community Support

Hi @Karlie69 ,

 

You should also have an audit table containing all the audit data,right?

Suppose that you have a table like below:

Area Expected performed times
Administration 3
a 2
b 1
c 2
d 1

Then create a calculated column as below:

 

Count of performed audits = LOOKUPVALUE('Table'[Count of performed audits],'Table'[Area],'Table (2)'[Area],0)

 

And you will see:

v-kelly-msft_0-1622099039257.png

For my sample .pbix file,pls see attached.

 

Best Regards,
Kelly

Did I answer your question? Mark my post as a solution!

View solution in original post

2 REPLIES 2
v-kelly-msft
Community Support
Community Support

Hi @Karlie69 ,

 

You should also have an audit table containing all the audit data,right?

Suppose that you have a table like below:

Area Expected performed times
Administration 3
a 2
b 1
c 2
d 1

Then create a calculated column as below:

 

Count of performed audits = LOOKUPVALUE('Table'[Count of performed audits],'Table'[Area],'Table (2)'[Area],0)

 

And you will see:

v-kelly-msft_0-1622099039257.png

For my sample .pbix file,pls see attached.

 

Best Regards,
Kelly

Did I answer your question? Mark my post as a solution!

amitchandak
Super User
Super User

@Karlie69 , Join if with date table, if you do not have date create one using month year.

 

Now create a measure like this and plot it with month year from date table 

 

if(isblank(count(audit[audit])),1, blank())

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

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