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

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now

Reply
tmhalila
Resolver I
Resolver I

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
Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

February 2024 Update Carousel

Power BI Monthly Update - February 2024

Check out the February 2024 Power BI update to learn about new features.

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.

Top Solution Authors