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
NimaM
Frequent Visitor

A measure to calculate missing submission of reports

Hi,

 

We are running an event for two weeks. So each calendar date in this period has also an event day number, for instance, today is Event day 7.

All our stores should submit a daily sales report by the end of the day for their sale amount of YESTERDAY during this event (but not all do as expected). All these reported sales are stored in a FactDailySalesReports. So for each day, I know how many reports I have received with dollar value and etc. 

 

Data Model:  I have a FactDailySalesReports, connected to a Date table, connected to an EventDay table.

 

I need to create a report that shows Stores and the Number of Missing Reports in a table format or something. For instance, if today is the 7th day of the event and I expect to have 6 reports from every store, but since I don't, then I need an additional column to tell me how many are missing reports for each store up to this point. 

 

Hopefully, this is clear enough. 

 

Thanks, 

 

 

 

 

 

 

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi  @NimaM ,

I created some data:

vyangliumsft_0-1661843640558.png

Here are the steps you can follow:

1. Create measure.

Measure =
var _today=TODAY()
var _day=
DATEDIFF( 
MAXX(FILTER(ALL('FactDailySalesReports'),'FactDailySalesReports'[stores]=MAX('FactDailySalesReports'[stores])),[Date])
,_today,DAY)
return
IF(
  _day  =0,
"NO",_day &" "&"time are missing")

2. Result:

vyangliumsft_1-1661843640559.png

If you need pbix, please click here.

A measure to calculate missing submission of reports.pbix

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi  @NimaM ,

I created some data:

vyangliumsft_0-1661843640558.png

Here are the steps you can follow:

1. Create measure.

Measure =
var _today=TODAY()
var _day=
DATEDIFF( 
MAXX(FILTER(ALL('FactDailySalesReports'),'FactDailySalesReports'[stores]=MAX('FactDailySalesReports'[stores])),[Date])
,_today,DAY)
return
IF(
  _day  =0,
"NO",_day &" "&"time are missing")

2. Result:

vyangliumsft_1-1661843640559.png

If you need pbix, please click here.

A measure to calculate missing submission of reports.pbix

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

Thanks, Liu,

 

It worked perfectly. 🙂 

daXtreme
Solution Sage
Solution Sage

Why don't you create a table that will, for each store, hold a record that will tell you the date of report submission, something like report id and the id of the store that submitted the report? It'll then be so easy to calculate what you want... Such a table could be hidden from the end user and only a measure exposed.

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.