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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
tmhalila
Resolver II
Resolver II

Count Submitted Report - DAX Code

Hello team,

Please assist in resolving this matter, I have three tables

  • dimCalendar 
  • dimHotel (Hotel Name, Hotel ID, Hotel Manager)
  • FactTable

I need to know how many hotels submitted their report from the Date Received Column of the Fact Table during the past 5 days of the reporting period (the reporting period is Monthly). Later I will need to visualize by Comparing those submitted in the previous week vs this week

Fact Table

tmhalila_0-1649344784042.png

 

 

 

2 REPLIES 2
V-lianl-msft
Community Support
Community Support

Hi @tmhalila ,

 

According to the data you provided, I'm so confused about this 

during the past 5 days of the reporting period (the reporting period is Monthly)

Can you provide some expected results based on the data you provide?


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

Hello V,

As you asked for clarifications kindly use the link below will direct you to the ongoing conversions of the same with the attached file and more information. 

 

However, the clarity is ..... my client need to capture reports received within 5 days of This week against the same for the previous week. It is like this week vs the previous week but the only difference is it should capture only reports submitted within 5 days and it should be filtered by Reporting period. Example: Within this reporting Month (March) This week 50 reports were received vs 40 received last week

 

https://community.powerbi.com/t5/Desktop/Count-of-Report-By-Received-Date/m-p/2447507#M874481 

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!

November Carousel

Fabric Community Update - November 2024

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

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.