Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin 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.
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,
Solved! Go to Solution.
Hi @NimaM ,
I created some data:
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:
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
Hi @NimaM ,
I created some data:
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:
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. 🙂
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.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
10 | |
9 | |
8 | |
8 | |
8 |
User | Count |
---|---|
13 | |
12 | |
11 | |
10 | |
8 |